dvanaken / ZealousZamboni

0 stars 1 forks source link

Implement Zombies #9

Closed kcorman closed 10 years ago

kcorman commented 10 years ago

Implement zombies which chase skaters and kill them on contact.

ghost commented 10 years ago

Hey I had a proposal for the Zombie. We originally said make the Zombie chase the player closest to them.

The ambiguity arises when the Zombie moves towards skater A, and a different skater B comes in close enough that the Zombie is now closer to Skater B. So does the Zombie move to Skater B now? This would be the case under a system where every PlayState update we tell the Zombie to chase the current closest skater is.

I think the Zombie should pick the closest Skater when the Zombie enters the map, and lock on to this skater. If the Skater dies (not by a zombie) or exit the map, the Zombie can either walk off or they can pick a different Skater to lock on to. This is easier for the player to keep track off, with the side benefit of not recalculating the closest skater, for every zombie, every single PlayState update

kcorman commented 10 years ago

That's an interesting idea. I didn't notice this post when I coded it up so I actually did the original way. That being said, it would not be hard to change it to the other way. On the other hand, one thing I like about this way is that it makes zombies more threatening even though they move slower than skaters. Rather than essentially being safe when one skater gets far away from its zombie, you have to worry about another skater coming along. But we could try both ways. What do you think?