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.
- 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.
- 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
- cmu_graphics
https://www.cs.cmu.edu/~112/notes/hw7.html
Run gamePlay.py
in an editor of your choice.
- m key to immediately activate Super for player
- n key to immediately activate Super for enemy
- p key to pause enemy
- Jessie walking gif: https://media0.giphy.com/media/nsDMzRG1ivefoWw7tX/200w.gif?cid=82a1493blzepq3q2s6y12peh2g7s65mhg9xbl61ifm0jhaik&ep=v1_gifs_related&rid=200w.gif&ct=s
- Grass on map: "https://www.flaticon.com/free-icons/bush" title="bush icons">Bush icons created by microstd - Flaticon
- Block on map: "https://www.flaticon.com/free-icons/block" title="block icons">Block icons created by Smashicons - Flaticon
- Lake on map: "https://www.flaticon.com/free-icons/lake" title="lake icons">Lake icons created by Freepik - Flaticon
- Skull images: created on Canva.com
- Explanation on Dijkstra's algorithm for 2D path planning: https://www.youtube.com/watch?v=B2mUby28wsw
- Explanation on Dijkstra's algorithm: https://www.youtube.com/watch?v=EFg3u_E6eHU
- TP Pathfinding guide linked on 15-112 course page