O'Reilly logo

Micro Java™ Game Development by Roman Verhosek, David Fox

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

Chapter 12. Multithreaded Game Programming

When games are running on a mobile device, many different pieces of code must be executed simultaneously. This includes actions such as checking the keyboard, moving the sprites, detecting sprite collision, planning the game's artificial intelligence, and of course, repainting. If a developer has to put all those tasks into a list and execute the list step-by-step, just waiting for a new key-pressed event could pause the game. A much better approach would be to put tasks into different lists, and permit each list to ...

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