Log In  

Here's a boilerplate I plan on using for prototyping different games.

It consists of a splash screen which transitions to the title screen, upon which the user is encouraged to press the play button. Once the button is pressed, the screen transitions to the "gameplay" state, which is nothing but a text greeting asking the user to press a button, which then results in transitioning to the gameover screen, and finally a press of the button returns the user back to the title screen.

This is a simple implementation of a Finite State Machine

Splash -> Title -> Game -> GameOver -> ...Title

Details

Demo

Cart #38951 | 2017-04-01 | Code ▽ | Embed ▽ | No License
3

P#38952 2017-03-31 23:00 ( Edited 2017-04-01 03:00)


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 11:25:51 | 0.009s | Q:10