Skip to content

abdallabushnaq/game-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

game-engine

Engine based on libgdx and gltf

usage instructions

  1. Create youro GameEngine class.
    This class will do all the game specific part.
    It needs to implement ApplicationListener interface.
  2. Create RenderEngine field in your GanmeEngine class. This will do all the generic stuff that you can reuse in all your games.
    The renderEnigne needs a font and a texture region to draw the CPU/GPU performance graph.
    The renderEngine alo needs a camera that you define.
  3. Use RendreEngine methods add(), addDynamic(), addStatic() to add GameObjects into your scene.
  4. In the render method called by libgdx, you need to call all the generic part.
renderEngine.cpuGraph.begin();
renderEngine.updateCamera(centerXD, centerYD, centerZD);
renderEngine.cpuGraph.end();
renderEngine.gpuGraph.begin();
renderEngine.render(currentTime, deltaTime, takeScreenShot);
renderEngine.gpuGraph.end();
renderEngine.handleQueuedScreenshot(takeScreenShot);

You can add any other rendering code you need inbetween.

Issues

  1. MercatorSoundTest synth is not started when nearing the camera

Current Status running

managed textures 12 shader switches 11 texture bindings 61

About

Engine based on libgdx and gltf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages