Resizer: A Simple Video Game Without Member or Global Variables

I made a very simple video game about a green circle avoiding red arrows for my “Art of Graphics Programming Class”. I was given the constraint to avoid using member and global variables, and to do everything in Cinder’s draw loop. As such, the game isn’t able to save the state of enemies or the player in a normal way. Instead I use sine functions to determine enemy positions, and the width of the application window to alter the player’s location. Also, as a consequence of everything being in the draw loop, the game just quits when you lose. You can check out a quick video of the game below, download it here (mac only) and browse the full code on GitHub.

[vimeo https://vimeo.com/106145700 w=640]

Leave a Reply

Your email address will not be published. Required fields are marked *