State Machines

I’ve decided that the game needs a state machine. As of right now, I’m only going to have 3 states: 1) an intro state, with no logic and a quick splash screen, 2) the play on the field state, 3) an outro state with no logic and a quick splash screen.

Once I get those three set up (remember, I already have the onfield state working I’m just setting up a state machine in the background) then I can add a fourth state, which will just be a button that says “play game”.

Since my games are going to need this anyway and the project is right at that point of growing complexity I might as well bite the bullet and do the work now.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s