Comments (1)
If anyone has an questions about the code itself, feel free to send me a message. A fantastic tutorial on the topic of emergent group behaviour can also be found at http://gamedevelopment.tutsplus.com/tutorials/the-three-simple-rules-of-flocking-behaviors-alignment-cohesion-and-separation--gamedev-3444
!!! PLEASE READ FIRST - SOURCE INCLUDED !!!
Written by Troy Owen
This is a local multiplayer game, you must use two controllers to play (tested with Xbox360 controllers.)
This was more intended as an simple example (actually extended from a piece of work I did this last semester for university) of emergent group behaviour and source is included in the ZIP file. It was written in C++ using SFML 2.1.
The game itself has two players pitted against each other. They must first find out which of the agents they control in a large crowd. Use the Left Stick to move and RT or the X button to attack. One then must try to figure out who the other player is, and attack them before being attack themselves. Hide your movements by follwing the behaviour of the rest of the crowd, which will begin to change as time passes by. Avoid unnessesary attacks, or killing the innocent, or you will be avoided by the crowd, making you more noticable.
As was mentioned this is intended more as a learning example for other developers, and does NOT have a proper game loop programmed in (that is, nothing happens when player(s) have been killed.)
Enjoy
#strategy