Sheep & Wolf: An FSM in Action from finite state machine code Watch Video
Preview(s):
Gallery
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)
Description: This is a simple finite state machine (FSM) in action.Sheep have states: Grazing, Sleeping, Fleeing, Dead.Some behaviors and transitions are random (like a sheep falling asleep, or how it moves when grazing), and some behaviors and transitions are governed by the presence and proximity of a big bad wolf. Demo is a cocos2d app. All code is MIT.Presented at Boulder iOS meetup on May 10, 2011 http://boulderios.com
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)