Skip to content

SiegfredLorelle/cpe40032-Luksong-Baka-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Luksong Baka

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

Homepage


Table of Contents


Description

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.

Technologies

  • Unity Game Engine 2021.3.16
  • C# (.NET Standard 2.1)

Back to the Top


How to Use

Play in the Web

  • Access the game via itch.io (No login required).
  • Click 'Run game'.
  • Enjoy the game!

Back to the Top

Installation

Back to the Top


Gameplay

  • Controls

    • Jump / Double Jump

      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.

      Single Jump

    • Dash

      Hold Left Shift to dash. Dash is automatically activated when strength power-up is activated.

    • Throw Projectiles

      Press E to throw projectiles. Projectiles will only be thrown if a bomb or dagger power-up is activated.

    • Pause

      Press Esc to pause/unpause the game.

    Back to the Top

  • Obstacles

    All Obstacles damage the player upon collision by taking one (1) heart.

    • Type

      • 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).

        Cow

        Back to the Top

      • 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.

        Truck

        Back to the Top

      • Regular obstacles

        Regular obstacles do not have unique qualities/mechanics. It includes spools, boxes, and barrels.

        Spool - (regular obstacle)

        Back to the Top

    • Size

      • 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.

        Back to the Top

  • Power-ups

    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.

    • Strength

      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.

      Player Throwing Obstacles

      Back to the Top

    • Bomb

      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.

      Player Throwing Bombs

      Back to the Top

    • Dagger

      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.

      Player Throwing Dagger

      Turning Cow to Meat

      Back to the Top

  • Walkable

    The player landing on a walkable object resets double jump. There are two walkable objects in the game:

    • Ground
    • Truck Trailer

    Walking on Top of Trailer

    Back to the Top

  • Lives

    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.

    Floating Heart

    Back to the Top

  • Scoring

    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)

    Back to the Top

  • Difficulty

    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.

    Back to the Top


Menus

  • Main Menu

    The player/user is redirected to the Main Menu upon starting/launching the game.

    Main Menu

    Main Menu has 4 available options/buttons:

    • Play

      Redirects the player to the game itself. Unloads Main Menu Scene and loads Luksong Baka Scene.

      Back to the Top

    • 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.

      Options

      Back to the Top

    • Help

      Shows the controls and power-ups in the game. Loads Help Scene additively to Main Menu Scene.

      Help

      Back to the Top

    • 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.

      Back to the Top

  • Pause Menu

    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.

    Pause Menu

    Back to the Top

  • Game Over Menu

    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.

    Game Over Menu

    Back to the Top

  • Confirmation Prompt

    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.

    Confirmation Prompt

    Back to the Top


Credits and References

Assets, prefabs, images, sound effects, and background music are owned by their rightful owner.

Back to the Top


Authors Info

Back to the Top

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •