Skip to content

mattisboeckle/mdb-engine-core

Repository files navigation

mdb-engine-core

This is the core part of my Game Engine written in Java using LWJGL.

Getting started

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.

Features

  • Automatic GameLoop
  • Custom Event System
  • Texture loading
  • Model loading
  • OpenGL Shader wrappers
  • Nuklear GUI wrappers (WIP)
  • Easy rendering System

Prerequisites

None

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

The core parts of my game engine in Java using LWJGL

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published