Adding New Power-ups
Power-ups are items that spawn on the map and provide bonuses to tanks.
- Create the Bonus Class: Create a new file in
src/entities/powerups/. - Inherit from PowerUp: Use the
PowerUpbase class. - Define Effect: Implement what happens when a tank collects the item.
- Register: Add to
src/entities/powerups/index.tsso it can be spawned by theGameinstance.