game.lua 262 B

1234567891011121314
  1. function init()
  2. -- Set the title of the main window
  3. Window.set_title("Hello world!")
  4. end
  5. function frame(dt)
  6. -- Stop the engine when the 'ESC' key is released
  7. if Keyboard.button_released(Keyboard.ESCAPE) then
  8. Device.stop()
  9. end
  10. end
  11. function shutdown()
  12. end