Author Topic: Multiple shots?  (Read 3310 times)

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
Multiple shots?
« on: January 25, 2006, 02:44:56 AM »
Been meaning to ask what happens if a bot gets hit by multiple shots at once. Do they all affect the bot or are they each treated seperately?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Multiple shots?
« Reply #1 on: January 25, 2006, 04:39:06 AM »
Here is a rough schematic of what happens over a cycle:

1.  ALL bot DNA code executes.

2.  The program runs through shots one at a time, updating their position and seeing if the movement from the last position to the new position has moved across a bot or not.  If a bot is hit, an appropriate response is executed.

Then we cycle back and start with the next shot.

So, short answer: multiple shots hitting a bot result in multiple responses.

(3.  All bots are moved around all that fun stuff.)