Chapter 5. Creating a 2D Platform Game

KEY TOPICS

  • Creating a Tile-Based Map

  • Collision Detection

  • Finishing Things Up and Making It Fast

  • Creating an Executable .jar File

  • Ideas to Expand the Game

  • Summary

This is where the fun starts.

The previous chapters covered the basics of using Java to create graphics, sound, and interactivity. In this chapter, you're going to use what you created in the previous chapters to create a real 2D platform game. Platform games are games in which the player runs and jumps from platform to platform, avoiding bad guys and collecting power-ups. To create a platform game, in this chapter you'll learn about tile-based maps, map files, collision detection, power-ups, simple bad guys, and parallax background scrolling. Check out ...

Get Developing Games in Java™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.