rosaqq / lekek

Java game engine project with LWJGL.
MIT License
0 stars 0 forks source link
engine lwjgl

Requires Java 11+

LWJGL project

Core ideas to implement

Road map

Run instructions

Inside project folder open cmd and do:

./gradlew run to run on linux
gradlew.bat run to run on windows

Controls

a w s d to move
space/shift for up/down
mouse to look around

t/Esc to open/close command line
/help to show commands

left click to select an item
right click to cast a "ray"

arrow keys to move selected item
x y z to rotate selected item aroud its x/y/z axis
j to rotate selected item in world Y axis
k to reset selected item rotation

press power button to paint screen black

About

This section holds documentation of the inner workings of the engine.

Game Item concept

Everything that's renderable must implement IRenderable.
Currently, there's:

AbstractGameItem is extended by:

Terrain should fit in here somewhere... currently WIP.

Summary Chart:

Renderable Chart

Scene

Everything required to construct a level:

Camera

Camera uses Quaternion rotation (maybe not worth performance wise?).
Key concepts:

Thus, the order is pitch * this.rotation * yaw.
Conclusion: multiply on the right to apply first.

Collisions

Currently WIP