Skip to content

Game API Overview

The Game class acts as the central hub and orchestrator of LITIENGINE. It exposes specialized singleton managers providing access to every engine subsystem.


Core Game Subsystems

  • Game World & Environments


    Loading .tmx maps, switching active scenes, entity lookup, and spatial query indexing.

  • Camera & Viewport


    Smooth target tracking, map clamping, zoom transitions, screen shake trauma, and coordinate conversion.

  • Physics & Collisions


    Spatial quadtrees, raycasting, velocity resolution, bounding box collisions, and force gravity.

  • 2D Graphics & Rendering


    Double-buffered AWT rendering pipeline, Y-sorted render layers, shapes, and TextRenderer.

  • Sound & Audio Engine


    2D positional spatial audio falloff, .ogg Vorbis streaming, sound effect caching, and music playlists.

  • Game Loop & Timing


    Game loop execution, delta time calculations, update callbacks, and scheduled delay tasks.

  • Tweens & Easing


    Property interpolation framework with Robert Penner easing equations (QUAD, BOUNCE, ELASTIC).

  • Screens & Game States


    Scene state manager for Title Screen, Gameplay Screen, Pause Overlay, and Game Over sequences.

  • Full Javadoc Reference


    Complete Java API documentation for all packages, classes, and methods across the engine.