Free chapter of Beginning Game Development with Python and Pygame
My book, Beginning Game Development with Python and Pygame, is finally finished! It was a labor of love, and a lot of work. Apress have graciously allowed me to give away a free chapter.
I chose chapter 7, which is on the subject of Artificial Intelligence. I selected this chapter because it is nicely self-contained and doesn’t require much additional understanding of other game concepts. It is an unusual chapter, in that it contains the largest listing in the book. I tried to avoid really long listings, but in this case I think it was justified so that the code in the book actually runs; I hate leaving any code as an exercise for the reader.
![]()
Download Chapter 7, Take me to Your Leader
Chapter 7 discusses how to build a simple AI simulation of an ants nest using a state machine, a technique which can be applied to virtually any simulation that you might want in a game. You can download the code for the book below, it isn’t interactive, but I think it is entertaining to watch for a minute or two!
The ant simulation uses the gameobjects library, which you can install with the following comand:
easy_install gameobjects
The book will be available in all good book shops, and some bad ones, on October 24th. Thanks to everyone at Apress for guiding me through the writing process!
Update: I blogged the Table of Contents
October 5th, 2007 at 1:25 pm
Awesome, thanks you!
October 5th, 2007 at 3:23 pm
Congratulations! I’ve had the book on order for some time and I can’t wait until it arrives! Of course, I am still plodding through my two OpenGL books… There simply aren’t enough hours in the day.
October 6th, 2007 at 12:40 am
Congratulations, Will!
October 6th, 2007 at 3:56 am
Congratulations!
October 6th, 2007 at 10:32 am
Cool! I really hope the rest of the book lives up to the expectation this chapter creates. It’s already on my whishlist. Good stuff … :)
October 9th, 2007 at 10:18 pm
[…] free chapter of beginning game dev with python […]
October 9th, 2007 at 10:30 pm
Would there be any online version available?
October 10th, 2007 at 1:25 pm
Actually yes, Apress will be offering an e-book version.
October 11th, 2007 at 6:06 pm
Even if I know much of the material already, I am looking forward to reading over this and handing it off to others. Congratulations!
October 18th, 2007 at 5:08 am
Just pre-ordered the book. I can’t wait.
I am actually looking at doing a simple top-down 2D tile game in the Ultima flavour and hope I can glean some things out of this book to help out.
Any sections I should pay particular attention to?
Cheers,
Pete
October 23rd, 2007 at 10:53 pm
Got mime today via Amazon :)
October 23rd, 2007 at 11:01 pm
Hope you enjoy it Jon! Maybe you could post a review on Amazon?
October 23rd, 2007 at 11:20 pm
Lucky you! Mine is delayed again until November! :o(
October 24th, 2007 at 7:09 pm
I will indeed, looks good so far!
October 31st, 2007 at 12:06 am
Sweet! My book arrived today! Time to get started…
November 28th, 2007 at 5:12 am
thank you so much ^.^
September 2nd, 2008 at 11:34 pm
Artikelverzeichnis Technik und Unterhaltung…
Artikelverzeichnis Technik und Unterhaltung…