This is the core part of my Game Engine written in Java using LWJGL.
Create a class which implements the IGameLogic interface
public class SimpleExample implements IGameLogic
This class needs the main function, in which you can create the GameEngine and then start it. It will be forced to implement the methods init, input, update, render and cleanup. These will be called by the Engine at the appropriate Time.
The creation of the GameEngine takes in the Title, Width and Height for a Window as its first three parameters, the fourth one is if vSync should be enabled and the last one is a class which implements IGameLogic.
Example:
public static void main(String[] args) {
GameEngine engine = new GameEngine("SimpleExample", 1280, 860, true, new SimpleExample());
engine.start();
}
With this you should get a Window with black background and the given title, width and height.
Code: SimpleExample
For further reference check the Wiki or the Examples.
- Automatic GameLoop
- Custom Event System
- Texture loading
- Model loading
- OpenGL Shader wrappers
- Nuklear GUI wrappers (WIP)
- Easy rendering System
None
- Mattis Böckle - Initial Work - mattisboeckle
This project is licensed under the MIT License - see the LICENSE file for details