Chapter 2. 2D Graphics and Animation

KEY TOPICS

  • Full-Screen Graphics

  • Images

  • Getting Rid of Flicker and Tearing

  • Simple Effects

  • Summary

First off, you can create three types of graphical games in Java: an applet game, a windowed game, and a full-screen game.

  • Applet gamesJava applet games are applications that run in a web browser. The benefit here is that the user doesn't have to install anything. But players have to be online and running a web browser to play, and, unfortunately, applets have a few security restrictions to keep malicious code from causing harm. For example, applets can't save information such as preferences or saved games to the user's hard drive. Also, an applet can make a network connection only to the server that it came from.

  • Windowed ...

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.