This is CS181G Spring 2024 final project GitHub for Catherine Byen, Eusila Kitur, and Vivien Song.
The repository is set up with three individually playable games (under the respective game, game2, and game3 folders), alongside a game engine for the three games (in the engine folder). For each game's folder, relevant code is contained in the src subfolder, and game contents such as spritesheets and audio files are contained in the contents subfolder.
Our first game is a graphical implementation of the river crossing puzzle, in which the player's task is to figure out how to move three objects -- a goat, a lion, and a carrot -- from one side of the bank to another, while keeping in mind that certain combinations of the objects cannot be left unattended on the bank.
- external image rendering
- nineslice background drawing
- text rendering
- level restarting
Our third game is a fruit collecting game where the player must collect the fruits on screen while avoiding collision with rocks by using arrow keys for movement (including the up key for jump). The player must collect enough fruits for hibernation in order to win! If player collides with a rock, the level restarts.
- player animation
- smooth/continuous player movement
- acceleration and gravity
- text rendering
- collision detection
- music!