abstract class Prism::GameEngine

Overview

A default game Engine with some pre-configured systems.

Defined in:

prism/stdlib/game_engine.cr

Instance Method Summary

Instance methods inherited from class Prism::Engine

add_entity(entity : Crash::Entity) add_entity, add_system(system : Crash::System, priority : Int32) add_system, flush flush, get_open_gl_version get_open_gl_version, init init, render render, startup startup, tick(tick : RenderLoop::Tick, input : RenderLoop::Input) tick

Instance Method Detail

def startup #
Description copied from class Prism::Engine

Starts up the engine.

TODO we don't need to define this here. Let the implementations do it.


[View source]
def tick(tick : RenderLoop::Tick, input : RenderLoop::Input) #
Description copied from class Prism::Engine

Process inputs This will pass time and input to the engine systems.


[View source]