Share your repls and programming experiences

← Back to all posts
pygame: tanks!
h
SeamusDonahue

this is based on a game called ShellShock Live

you are trying to arc your bullets into the other player and destroy their cover.

controlls

a and d to move - you can only move a short distance
w and s to change shot power
space to shoot

these controlls go for both players.

ui

there are three bars above the player:

  • the red bar is health
  • the yellow is power
  • and the green is movement

there is a red dot after you shoot the first time that shows you where you last shot.

the number in the top left is the current fps

terrain

the terrain in this game is comepletely destructable, fire away!
hit the die in the corner to reset and randomize the terrain!

the bg terrain is randomized once and stays until the next launch of the program.

win condition

tanks have 3 hp, a direct hit does 1 hp.
splash damage does a little under 0.6 max.

happy shooting!

Voters
programmeruser
Brendan23
SeamusDonahue
Comments
hotnewtop
programmeruser

Nice

Brendan23

@SeamusDonahue maybe you can make a dot for each person so the can actually calculate their shot.

SeamusDonahue

wdym? @Brendan23

Brendan23

@SeamusDonahue you know how there is a red dot that (I think) shows the players last shot. since it's in turns the player cannot use that dot to calculate his/or shot.

SeamusDonahue

it shows up on your turn... thats really all you need @Brendan23

Brendan23

@SeamusDonahue oh. ok. no need then.