usecrate::key_event::KeyEvent;/// Create a struct that implements this trait and pass it to the game_loop::run() function.
pubtraitGameService{/// This function updates data based on key_event.
fnkey_event(&self, _key_event:&KeyEvent){}/// This function updates data.
fnupdate(&self){}/// This function draws images on the canvas.
fndraw(&self, _context:&web_sys::CanvasRenderingContext2d){}}