2D Game Engine for the D Programming Language
To use vpe
you need D compiler and Dub package manager
You also need dynamic libraries:
$ git clone https://github.com/kuviman/vpe.git
$ dub add-local vpe
Add a depencency to your dub project:
"vpe": "~>0.1-alpha"
Hello world example:
import vpe;
void main() {
display.title = "Hello, world!";
while (!gotEvent!Quit) {
draw.clear(Color.White);
draw.save();
draw.plainview();
draw.color(Color.Black);
draw.translate(draw.width / 2, draw.height / 2);
draw.scale(32);
draw.text("Hello, world!", 0.5);
draw.load();
display.flip();
}
}
Also, see examples/
folder