Robot-Versus-Zombies / front-end

Post zombie apocalypse. You are a makeshift robot built out of a roomba, a webcam, and a few other doodads. You have been sent into a zombie infested mall to collect supplies for the survivors.
MIT License
2 stars 4 forks source link

Add weapons #31

Open JossWritesCode opened 4 years ago

DevWarr commented 3 years ago

What kind of weapons will the Robot be able to use?

Because the game doesn't store which direction the player is facing (the player simply moves from space to space) having directional-based attacks may not be the best. 🤔

There could be a 'point-and-click' style of attack:

  1. The player clicks on a specific tile
  2. If the player has a specific weapon and is close enough to the clicked tile, that tile can be 'attacked'
  3. Any enemies on that tile will take damage.
    • Also any enemies between the player and the clicked tile? Or just the tile itself?

There could also be an 'attack all around me' style of attack:

  1. The player attacks with a specific weapon
  2. The tiles around the player are all 'attacked'
    • Could be four tiles (above, below, left, and right), or all 8 tiles surrounding the player (including corner tiles)
  3. Any enemies on the 'attacked' tiles take damage