资 源 简 介
Breakout, an implementation of the classic brick-breaking game for Android devices. This is intended primarily as an example of a simple but complete game.
NOTE: Due to the impending shutdown of code.google.com, this project has moved to github: https://github.com/fadden/android-breakout
Some of what you"ll find in the sources:
Use of OpenGL ES 2.0 for a 2D game, including flat-shaded and texture-mapped elements.
Smooth animation that doesn"t require a fixed device refresh rate (game state advances according to how much time has elapsed since the previous draw).
Use of GLSurfaceView, with correct handling of multiple threads.
Interaction with the Android application framework, including game state save & restore on Activity pause/resume, and handling of screen rotation.
Forwarding of touch events to the game loop.
GL rendering of locale-specific anti-aliased text. (A rudimentary Spanish