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.

Pdf Icon
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!

Download Ant Simulation

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

17 Responses to “Free chapter of Beginning Game Development with Python and Pygame”

  1. Eduardo de Oliveira Padoan Says:

    Awesome, thanks you!

  2. Mark Melvin Says:

    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.

  3. David Montgomery Says:

    Congratulations, Will!

  4. Rene Dudfield Says:

    Congratulations!

  5. Bert Heymans Says:

    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 … :)

  6. Tims Blog » Blog Archive » Tim’s Lab Says:

    […] free chapter of beginning game dev with python […]

  7. gab Says:

    Would there be any online version available?

  8. Will Says:

    Actually yes, Apress will be offering an e-book version.

  9. Calvin Spealman Says:

    Even if I know much of the material already, I am looking forward to reading over this and handing it off to others. Congratulations!

  10. Pete Says:

    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

  11. Jon Says:

    Got mime today via Amazon :)

  12. Will Says:

    Hope you enjoy it Jon! Maybe you could post a review on Amazon?

  13. Mark Melvin Says:

    Lucky you! Mine is delayed again until November! :o(

  14. Jon Says:

    I will indeed, looks good so far!

  15. Mark Melvin Says:

    Sweet! My book arrived today! Time to get started…

  16. eddyfosman Says:

    thank you so much ^.^

  17. Artikelverzeichnis Technik und Unterhaltung Says:

    Artikelverzeichnis Technik und Unterhaltung…

    Artikelverzeichnis Technik und Unterhaltung…

Leave a Reply


Close
E-mail It
Socialized through Gregarious 42