Advertisement Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

I Heart You

Sign in to follow this  
Rob Loach


Happy Valentines Day. I hope everyone's out "macking" it up with their significant other [smile].

On the development side of things, easy game states are now implemented into the engine. It works on a single function pointer. I could've done it millions of different ways, but I think this is the easiest. For example, you just go System::CurrentGameState = MainMenu; and then it's in the main menu.

I've also modified the sprite class a bunch so now it can display a single tile in the image instead of just having to show the whole image. There's also some delay features so it goes through it nicely. This'll make Invaders quite easy to implement as it would just go through the animations for you and you wouldn't need to worry. It also takes up less memory now and the FPS displays the true FPS as well now (thanks mozie).

I attempted implementing a GUI for menu systems, but decided to give up as I have better, more fun, things to do. I could also eventually find a GUI library or something to that effect. If anyone has a recommendation of some kind, I'd love to hear about it.

Random Interest

Sign in to follow this  

1 Comment

Recommended Comments

System::CurrentGameState = MainMenu;
I usually use a stack myself but have also used your method. Must kill some invaders.

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!