cgrooves / black-earth

A Scorched Earth clone, made for fun
2 stars 2 forks source link

Basic Firing #16

Closed cgrooves closed 3 years ago

cgrooves commented 3 years ago

This adds basic bullets to the game, which disappear when they go off-screen to the left or right, or when they hit the ground.

It was necessary to change the ground to a rectangular Sprite instead of a rectangle shape to make it easier to add in ground-bullet collisions.

This also cleans up some of the code a bit and adds a config.py module where user-configurable constants are, for easy finding and tweaking.

Follow-on work should include making the tanks into Sprites as well, and handling collisions between tanks and bullets.

Addresses #6 and #7 .

cgrooves commented 3 years ago

@TheSpy0 , go ahead and review and close this out when you get a chance.