Skip to content

koayte/112-term-proj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brawl Bars

About the Game

Brawl Bars is an online battle arena and third-person shooter game. In a 2D map, the player competes in a 1v1 knockout battle (the enemy is a bot) with the following rules and mechanics.

Rules

  • Each player has two shooting modes: “normal” and “super”.
    • Normal mode: full ammunition consists of 3 shots, which take time to recharge
    • Super mode: a more powerful shot, which is activated when the damage wheel is full. The higher the player’s damage dealt to the enemy, the more the damage wheel recharges.
  • Each player has a health bar that decreases as they are dealt damage. When it hits zero, the player is killed.
  • The player can hide in bushes, where they are not visible to the enemy.
  • A match consists of 3 rounds, and whoever wins at least 2 rounds wins the match.

Mechanics

  • WASD / Arrow buttons for navigating
  • Mouse to aim
  • F key to toggle between shooting modes once Super mode is activated
  • Spacebar / Mouse press to shoot

Getting Started

Prerequisites

  • cmu_graphics https://www.cs.cmu.edu/~112/notes/hw7.html

Usage

Run gamePlay.py in an editor of your choice.

Cheatcodes

  • m key to immediately activate Super for player
  • n key to immediately activate Super for enemy
  • p key to pause enemy

Acknowledgments

  1. Jessie walking gif: https://media0.giphy.com/media/nsDMzRG1ivefoWw7tX/200w.gif?cid=82a1493blzepq3q2s6y12peh2g7s65mhg9xbl61ifm0jhaik&ep=v1_gifs_related&rid=200w.gif&ct=s
  2. Grass on map: "https://www.flaticon.com/free-icons/bush" title="bush icons">Bush icons created by microstd - Flaticon
  3. Block on map: "https://www.flaticon.com/free-icons/block" title="block icons">Block icons created by Smashicons - Flaticon
  4. Lake on map: "https://www.flaticon.com/free-icons/lake" title="lake icons">Lake icons created by Freepik - Flaticon
  5. Skull images: created on Canva.com
  6. Explanation on Dijkstra's algorithm for 2D path planning: https://www.youtube.com/watch?v=B2mUby28wsw
  7. Explanation on Dijkstra's algorithm: https://www.youtube.com/watch?v=EFg3u_E6eHU
  8. TP Pathfinding guide linked on 15-112 course page

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages