O'Reilly logo

Monkey Game Development by Michael Hartlef

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Game resources

Images, sounds, and other game data files are called resource files. For this game, we will need quite a few. With Monkey, all resource files have to be stored inside a subfolder of your project with a name such as yourGameName.data. For CometCrusher, we will need the following types of resource files:

  • Player ship image
  • Shield image
  • Comet images
  • Bullet image
  • Explosion particle image
  • Background star image
  • Bitmap font image to draw game stats
  • Explosion sound
  • Shot sound

So, let's go over these different types of resources, and how you could create them.

Images

Almost every game needs some graphics. In the initial chapters, we have used graphical primitives such as rectangles, circles, and lines. Monkey can draw these out of the box. For CometCrusher, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required