ashish2199 / Aidos

A beginner friendly project with aim of creating our own version of Bomberman.
GNU General Public License v3.0
41 stars 27 forks source link

Limiting the number of bombs that can be placed at a time by user #63

Closed ashish2199 closed 3 years ago

ashish2199 commented 3 years ago

Created a variable in the player called bombCount to keep track of the number of bombs the player has.

Also added a check in input manager class to add bombs only when a player has bombs available, the player's number of bombs will be decreased from here(not sure if its correct approach, will refactor later)