Description: A 2D side-scrolling game where you guide the farmer to avoid cows and other obstacles to achieve a high score.
Submitted as Final Project in the Polytechnic University of the Philippines - Sta. Mesa - A.Y. 2022-2023 in the course CMPE 40032 - Computer Engineering Technology 3 (Game Development).
Luksong Baka
It is a 2D side-scrolling game built on Unity Game Engine version 2021.3.16. The player controls and assists the farmer to avoid cows and obstacles. The more cows and obstacles avoided, the higher the score. It can be played either online or offline. Playing the game online will be via the web in itch.io. Playing offline requires the user to install the game. Users are not required to log in or give any information to play the game. It is applicable whether the game is played online or offline.
- Unity Game Engine 2021.3.16
- C# (.NET Standard 2.1)
- Access the game via itch.io (No login required).
- Click 'Run game'.
- Enjoy the game!
-
Install to Play the Game
- On your desktop, download all files in this Google Drive. (Not sure how?)
- Unzip the files. (Not sure how?)
- Open/Launch 'Luksong Baka.exe'.
- Enjoy the game!
-
Install to Edit the Game
- Fork this repository. (Not sure how?)
- Install Unity Software. Note that the Unity version used is 2021.3.16.
- In Unity Hub, open the project ('Luksong Baka' directory) in the forked repository.
- Feel free to edit the game!
-
-
Press space bar to jump. The player must be on a walkable object (ground and trailers) to jump. The player can only jump in the air once (double jump), and it resets when landing on a walkable object.
-
Hold Left Shift to dash. Dash is automatically activated when strength power-up is activated.
-
Press E to throw projectiles. Projectiles will only be thrown if a bomb or dagger power-up is activated.
-
Press Esc to pause/unpause the game.
-
-
All Obstacles damage the player upon collision by taking one (1) heart.
-
-
Cows
Cows can turn into meat when hit by a dagger. Turning a cow into meat adds one (1) point to the score (aside from the point added by the dagger hitting the cow).
-
Trucks
Trucks have a cab and trailer(s). The cab is considered to be an obstacle (can damage the player). While the trailer is a walkable object.
-
Regular obstacles
Regular obstacles do not have unique qualities/mechanics. It includes spools, boxes, and barrels.
-
-
-
Small
Due to its, height, small obstacles can be avoided using a single jump.
-
Large
Due to its height, large obstacles are only avoidable using a double jump. There is an audio cue when a large obstacle spawns. Moo sound effects are the audio cue for large cows. Truck horn sound effects are the audio cue for trucks.
-
-
-
A random power-up is activated when a power-up box is picked up. When a power-up is activated, there will be an indicator below the player. The indicator will start blinking when the power-up is about to run out. Only one power-up can be activated at a time due to the power-up box not spawning whilst a power-up is activated.
-
Makes the player invincible. Obstacles that collided with the player will be thrown into the air. Throwing an obstacle will add one (1) point to the score (the same score as avoiding it). Dash is automatically activated and will last until the indicator starts blinking. The total duration of the strength power-up is 5 seconds.
-
Allows the player to throw unlimited bombs. A bomb is thrown when the E key is pressed. Bombs that collide with obstacles will create an explosion and add one (1) point to the score (same as avoiding it). The total duration of the bomb power-up is 5 seconds.
-
Allows the player to throw five (5) daggers. A dagger is thrown when the E key is pressed. Daggers that collide with cows will turn the cow into meat, and add two (2) points to score. Daggers that collide with trucks or regular obstacles will destroy the obstacle and add one (1) point to the score (same score as avoiding it). The dagger power-up lasts until all five (5) daggers are thrown. It does not have a duration.
-
-
The player landing on a walkable object resets double jump. There are two walkable objects in the game:
- Ground
- Truck Trailer
-
The number of lives is indicated by the number of full hearts on top of the player. The player can only have a maximum of three (3) lives. The game starts with three (3) lives. The number of lives is reduced by one (1) when taking damage (colliding with obstacles). The number of lives can increase by one (1) when a floating heart (similar to a power-up box) is picked up. The game is over when the player has no more lives left.
-
Events that add one (1) point to score:
- avoiding an obstacle
- throw obstacle into the air (via strength power-up)
- obstacle destroyed by an explosion (bomb-obstacle collision)
- obstacle destroyed by a dagger (dagger-obstacle collision)
Events that add two (2) points to score:
- dashing to avoid obstacles
- turning cow to meat (dagger-cow collision)
Events that reduced three (3) points to score:
- player hitting obstacles (player-obstacle collision)
-
The game gets more difficult as the score increases. As the score increase by five (5), the spawn interval of obstacles decreases. Lower spawn interval results in more obstacles and less space for the player to land on the ground. The lowest spawn interval happens when the score is at forty (40). Any score higher than forty (40) will still have the lowest spawn interval possible.
-
The player/user is redirected to the Main Menu upon starting/launching the game.
Main Menu has 4 available options/buttons:
-
Play
Redirects the player to the game itself. Unloads Main Menu Scene and loads Luksong Baka Scene.
-
Options
Allows the player/user to adjust the volume of background music and sound effects of the game. Hide/deactivate buttons in the Main Menu and show/activate buttons in the options canvas.
-
Help
Shows the controls and power-ups in the game. Loads Help Scene additively to Main Menu Scene.
-
Quit
Prompt the player/user if they really want to exit the game. Exits the game if yes. If no, redirect back to the Main Menu. Show/activates Confirmation Prompt Canvas.
-
-
Pause Menu is shown/activated when pressing the Esc key while unpaused.
Pause Menu has 4 available options/buttons:
-
Restart
Restarts the game. Score, difficulty, and lives are reset to their default/starting values. All power-ups are deactivated. Reloads the Luksong Baka Scene.
-
Help
Shows the controls and power-ups in the game. Loads Help Scene additively to Main Menu Scene.
-
Quit
Prompt the player/user if they really want to exit the game. Exits the game and redirects to the Main Menu if yes. Go back to the Pause Menu if no. Show/activates Confirmation Prompt Canvas.
-
Resume
Unpause the game. Same as pressing the Esc key while paused.
-
-
The Game Over Menu is shown/activated when the player has zero (0) lives. It shows the final score achieved in that session of the game.
Game Over Menu has 2 available options/buttons:
-
Restart
Restarts the game. Score, difficulty, and lives are reset to their default/starting values. Reloads the Luksong Baka Scene.
-
Quit
Prompt the player/user if they really want to exit the game. Exits the game and redirects to the Main Menu if yes. If no, go back to the Game Over Menu. Show/activates Confirmation Prompt Canvas.
-
-
Prompts player/user if they really want to exit the game. A Confirmation Prompt is activated when pressing any quit or exit buttons. Quit buttons from the Pause Menu and the Game Over Menu will redirect to the Main Menu if choosing yes. Choosing no will redirect back to the Pause Menu or the Game Over Menu. The exit button from the Main Menu will exit/close the game itself (Luksong Baka.exe) if choosing yes. Choosing no will deactivate the Confirmation Prompt and redirect back to the Main Menu.
Assets, prefabs, images, sound effects, and background music are owned by their rightful owner.
- Inspiration from Prototype 3 of Create with Code - Unity Course
- Assets from Create with Code - Unity Course
- Dagger Prefab from Unity Asset Store by SICS Games
- Trucks Prefab from Unity Asset Store by VIS Games
- UI Assets Unity Asset Store by Cyberlogical
- Buttons and Fonts from Unity Asset Store by That Witch Design
- Heart Image from Vecteezy by drsuthee915755
- Background Music from Pokemon Ruby/Sapphire/Emerald - Dewford Town Theme in Youtube
- Moo Sound Effects 1 from Minecraft - Cow Sound Effects in Youtube
- Moo Sound Effects 2 from Minecraft - Cow Sound Effects in Youtube
- Damage Sound Effects from Minecraft - Damage Sound Effects in Youtube
- Explosion Sound Effects from Minecraft - TNT Explosion in Youtube
- Truck Horn Sound Effects from Pixabay by hsaunier10
- Jump Sound Effects from Pixabay by Bastianhallo
- Metal Sound Effects (dagger destroying obstacles) from Fesliyan Studios
- Github - Siegfred Lorelle Mina
- Github - Shin Lim & Shin Lim
- Github - Edgar Esguerra Jr.
- Github - Kenji Ilao