Monday, December 26, 2011

Some tweaking required.....


With this post, I would like to close efforts to port chapter 3. I have completed all steering behaviors. Added one control view to enable switching on/off of some parameters in the SHOAL build.

Monday, December 19, 2011

Finally Chapter 3 Beta Port Source

For those who are impatient here is a beta version of my port so far. Following behaviors work:

Seek and you shall find!

As excited as I am by the fact that my porting so far has been relatively successful, I still have a little further to go before I can post the code here. But just as teaser, I have been successful in testing the following Steering Behaviors so far on an iTouch!

Thursday, December 8, 2011

Slogging through Chapter 3

Looks like I have more than one follower now looking forward to see chapter 3 source port. So I was compelled to write an update at least to show where I am!


Somebody (@Jawzapps:) pointed out that chapter 3 is lot more code than what you see in the book. And was he right! I have been slogging through the code for more than a month. There was no easy way to do incremental coding and build so I decided to go all out and port the entire source code without any concrete build or run phases until the end.

Friday, November 18, 2011

Order of objects in NSSet and NSMutableSet

I wanted to accomplish couple of things with this post. One was to test the SyntaxHighlighter plugin for posting code here and two to explain what I observed in trying to use the NSMutableSet class in the third example of chapter 2 in code I have posted before.

Monday, November 14, 2011

Game AI Objective-C Chapter 2 Source

As promised here are the links to the chapter 2 examples of the Programming Game AI Example book. As mentioned earlier, I have tried my best to stay true to the original C++ code structure. Only in the third examples have I differed a little by using Objective-C properties. Couple of things to note about the third example. 

Sunday, November 13, 2011

Programming Game AI Chapter 2

Continuing on from my introduction to this blog, Mat Buckland's book Programming Game AI by Example is excellent so far. His math and physics introductions are just enough for anybody to understand how important the subjects of math and physics are to game development. His introduction to game state engines as a precursor to Game AI and a creation of a FSM (Finite State Machine) with just a few lines of code with the West World Messaging example is both simple and very interesting. His website for the book has a snapshot of chapter 2 introduction and some of the code. One problem?