[−][src]Trait kurenai::game_service::GameService
Create a struct that implements this trait and pass it to the game_loop::run() function.
Provided methods
fn key_event(&self, _key_event: &KeyEvent)
This function updates data based on key_event.
fn update(&self)
This function updates data.
fn draw(&self, _context: &CanvasRenderingContext2d)
This function draws images on the canvas.