Chapter 6: Assembling a Playable Game: The Full Actor-Behavior Vocabulary
In this chapter, you'll sail around Pirate Cove collecting treasure, dodging crabs, and reaching your ship. The big idea is that a whole game is just a handful of behaviors attached to actors: goodies to collect, destinations to reach, hazards that hurt, and a hero who can jump, crawl, or fly.
I'm still writing this chapter, step by step. In the meantime, you can play the finished game, and read the code and the assets that make it, so that you can run it and change it yourself.
Play the Game
The code that makes it:
The assets, which go in an assets folder next to the game: