Disclaimer: Please see the 60 page Super-Peach-Sisters-Spec.pdf to read the entire manual of how this game is built, and other intricate requirements.
Super Peach Sisters is inspired by the popular game Super Mario Bros. All users play as Peach, hence the name. I created this game to advance my knowledge and application of C++ Data Structures. This project makes use of C++ Inheritance to create 14 individual game objects, XQuartz to create a visual GUI, Super Mario Bros sound effects, character sprites, and the concept of ticks, explained below.
The game continously waits for keyboard output (Arrow keys, WASD, Space Bar) in every game tick. We can treat each tick as a second of time in the game; however in reality, there are dozens of ticks per second to assure smooth game play. At each tick, each character exectues a doSomething(), bonk(), or other various functions depending on their interaction with other game objects. Ideally, the greater amount of ticks/second, the more smooth gameplay will proceed. On most MacOS machines, there will not be a huge performance difference.
From a user perspective, this game keeps track of health, accumulated power ups, current score similar to the original Super Mario Bros. GAME PLAY PICTURES ARE INCLUDED BELOW.
To see what the game looks like in action:
- macOS: You'll need to have XQuartz and freeGLUT installed to run the program.
-
Install XQuartz:
- Click the download link, open the downloaded .dmg file, double-click on XQuartz.pkg, and follow the installation instructions.
- Log out and log back in again.
- To verify the installation, open a Terminal window and run the command
echo $DISPLAY
. That should produce one line of output that ends withorg.xquartz:0
.
-
Install freeGLUT:
- Some Homebrew installation problems seem to be fixed by running the command or by running the commands
- Install the homebrew package manager.
- Open a Terminal window and run the command
brew install freeglut
.
git -C $(brew --repository homebrew/core) checkout master
rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core brew update
-
Peach can head bonk the red blocks to unlock the FIREBALL and MUSHROOM JUMP powers just like in Super Mario Bros.
Unlock new levels once you cross the first one! Make sure you don’t run out of lives!
Careful! If you get to close the monsters will throw fireballs at Peach! The game keeps track of your powers at the top. Peach has ShootPower! and JumpPower! currently.