Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.
/ Bogel2D Public archive

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

License

Notifications You must be signed in to change notification settings

Blackoutburst/Bogel2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks