Jump to content

Simple states example


Recommended Posts

  • There is only one file/script.
  • The states are simple objects (no prototype).
  • Three states: Boot, Menu, Game. You move through them with Start, Restart, and Quit.
  • Fun features:
    • Loading bar with setPreloadSprite
    • loadUpdate, loadRender, pause, render, and shutdown callbacks
    • Logs state changes with onStateChange signal so you can see what's happening



Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...