home | hauntedcastle.org | sao bento music | mobile | about
www.flickr.com
|
Recent Posts -> so much goin... -> mobisodes in... -> mobile album... -> NIME 2005... -> game music... ->
« Patholog | Main | 534 Proposals »
October 22, 2003
zombie algorithm / notes @01:31 PM
Rule Set for Zombies:
This is Kevan Davis's movement rule for his zombie sim:
Zombies...move very slowly and change direction randomly and frequently unless they can see something moving in front of them, in which case they start walking towards it. After a while they get bored and wander randomly again.
This is a pretty solid movement. It works especially well in his sim because the movement of zombies is impeded by building objects. We don't have these barriers, so it's best to think about altering his algorithm for movement.
rule set:
zombie movement:
- when humans are outside the radar of the zombie, they move about randomly.
- zombies move at a fixed speed towards the player if the player comes within a certain radius of the zombie.
- zombies lose interest if the player gets far enough away (outside the radius)
zombie behavior:
- zombie infects player if they occupy the same space (pixel radius of 2)
- zombies cannot occupy the same space (pixel radius of 2)
We need to determine the average walking / running speed, for a player moving across the location so we can program a reasonable default speed for the zombies.
here is a basic example of zombies following a player, with none of the behavior attributes (therefore, zombies cluster together - uggh):
Move with W, S, A, D (make sure applet is active)
posted by will | comments (0) |
permalink
| all rights william carter |
| view cc license |