I have used these techniques to create a little application where zombies seek out and kill humans. The humans make different decisions to determine if they are going to seek out food objects so they don't starve to death or flee from a pursuing zombie and avoid getting eaten!
You can see a video of the final application below, the video contains 25 humans, 1 zombie and 100 food objects scattered throughout the world.
When the humans die from starvation they turn black, if they are caught by a zombie they slowly turn in to one and join the zombie hoard.
the download also contains the report that was written as part of the project which goes into detail about how the application was implemented and outlines all the different behaviours and decision trees that were used.
There is still a lot that i am planning to do to the application, i would like to implement pathfinding, refine all the behaviours and attempt to implement something similar but run it on the GPU rather than CPU and see if there is an increase in performance.
For any one who tries the application, feedback about what you thought, any bugs you find and what could be improved would be greatly appreciated. You can do this by completing this anonymous survey or feel free to email me at 10004794@napier.ac.uk or comment below.
Application Instructions
Inside the folder called Release, find the .exe of the application called HumansVsZombies.
Run this.
You will be asked to enter the number of humans, zombies and food for the simulation.
Works best with 25 humans, 1 zombie and 50 food items.
Watch the humans get massacred.
Laugh
Repeat
The application requires openGL 3.3 or higher in order to run.
The camera can be controlled using the WASD, LShift and space keys although this should not
be necessary.
Known bugs
- When entering a large number of humans and zombies (50+) the agents will sometimes dissapear
from the screen.
Any comments, questions or bugs that you find please send them to
10004794@napier.ac.uk
Thanks
Craig
No comments:
Post a Comment