/dvpe

2D Game Engine for the D Programming Language

Primary LanguageD

vpe

Build Status

2D Game Engine for the D Programming Language

Requirements

To use vpe you need D compiler and Dub package manager

You also need dynamic libraries:

Installation

$ git clone https://github.com/kuviman/vpe.git
$ dub add-local vpe

Documentation

DDox generated documentation

Usage

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

Hello, World Pong Random Figures Sample Particle System