/Bogel2D

I really simple abstraction of LWJGL 3, used to create small 2D game and other fast 2D prototype, UNDER HEAVY DEVELOPMENT

Primary LanguageJavaDo What The F*ck You Want To Public LicenseWTFPL

License Release Codacy Badge Size

Bogel2D

I really simple abstraction of LWJGL 3, used to create small 2D game and other fast 2D prototype

Get started

Link Bogel2D to your project and Bogel2D dependencies which can be found here and don't forget to link your system natives

Minimal code

import com.blackoutburst.bogel.core.Display;
import com.blackoutburst.bogel.graphics.Color;
import com.blackoutburst.bogel.graphics.Shape;
import com.blackoutburst.bogel.graphics.Shape.ShapeType;
import com.blackoutburst.bogel.maths.Vector2f;

public class HelloWorld {
    
    public static void main(String[] args) {
        Display display = new Display().setSize(600, 600).create();

        Shape shape = new Shape(Shape.ShapeType.QUAD, new Vector2f(300), new Vector2f(400), 0, false)
                .setColor(Color.BOGEL);
        
        while (display.isOpen()) {
            display.clear();
            shape.draw();
            display.update();
        }
        shape.clean();
        display.destroy();
    }
}

This code should provide the following output
image