$25
To build a more complex game in Mode 3 to further your understanding of: structs, arrays, and pooling.
Instructions
In this homework, you will be making a more complex game in Mode 3. This must be something different than what you implemented for HW02 or any of the labs. Examples of games you can use for inspiration are at the bottom of this PDF.
The design of this game must be more complex than “catching/dodging falling boxes” or basic “pong”. We are leaving this one more open ended so that you can push yourself creatively and see what fun game you can come up with! You are free to choose one of the examples we provide, but you are also free to create your own original game (if you choose this option, please speak with a TA first so that we can ensure it is on the expected difficulty level).
Requirements:
Your game must use the following:
● At least one struct
● At least one array
● Object pooling
● A state machine including at least the following states:
○ Start
○ Pause
○ Game
○ Win (and/or lose)
■ It is okay if your game is a survival based game, and therefore only has a lose state
○ You must be able to navigate between the states in some way (e.g. pressing button START while on the Start state takes you to the Game state, beating the game while on the Game state takes you to the Win state, etc.)
● At least four moving objects
● At least four buttons used for input
● Collision that matters ( i.e. something must happen whenever two different objects hit each other)
● A readme.txt file
○ An instruction manual (of sorts) that tells a player how to play your game ● Only a minimal amount of flicker
Your code must have the following:
● At least three .c files (this time more than just main.c and myLib.c)
● At least two .h files
● Good organization (see tips below)
● Meaningful comments