H

Half-Size Video Graphics Array (HVGA), 13

handler classes, Input interface and,

192-209

AccelerometerHandler handler code,

193-194

Input implementation, 207-209 KeyboardHandler handler, 196-200 Pool class, 194-196 touch handlers, 200-207 hardcore games, 22 hash grids, spatial, 387-394 HashMap class, 194 hasNormals parameter, 541-542 hasParent member, 516 HCI (human computer interfaces), 65 headdown.png, 231 headleft.png, 231 headright.png, 231-232 headup.png, 231 Heap view, 48 heightSoFar, 474 hello world project, 32-37 creating project, 32-33 exploring project, 33-35 writing application code, 35-37 HelloWorldActivity class, 33, 35, 37, 43 Help button, 65 help screens, 67-68, 454-457 help1.png, 231

help2.png, 231 help3.png, 231

HelpScreen classes, 241-243 hierarchical systems, with matrix stack, 514-520 example, 518-520 HierarchicalObject class, 515-517 simple crate solar system, 514-515 HierarchicalObject class, 515-518, 520 HierarchicalObject.render( ) method, 518

HierarchicalObject.update( ) method, 518

HierarchyScreen class, 518 HierarchyScreen.present( ) method, 523 HierarchyTest class, 518 high-score button, 65 high scores, saving, 234-235 high-scores screen, 243-247, 457-459 implementing, 245-247 rendering numbers, 243-245 HighscoreScreen class, 245, 261, 266 history of Android, 2-3 hitPlatform( ) method, 466-467 hitSpring( ) method, 467 hitSquirrel( ) method, 466 human computer interfaces (HCI), 65 HVGA (Half-Size Video Graphics Array), 13

icon attribute, 114 icon.png files, 115, 232 icons, defining game, 114-115 identity matrix, defined, 276 if statement, 394 image formats, for graphics, 87 inBounds( ) method, 239-240 indexed vertices, 315-321 example code, 316-318 Vertices class, 318-321 indices, 132-133 innovation, of genres, 60 input device handling, 127-144 key events, processing, 137-140

multitouch events overview, 127 processing, 131-137 reading accelerometer state,

141-144 single-touch events, processing, 127-131 Input implementation, 207-209 Input interface, and handler classes,

192-209

AccelerometerHandler handler code,

193-194

Input implementation, 207-209 KeyboardHandler handler, 196-200 Pool class, 194-196 touch handlers, 200-207 Input module, 70, 96 Input.getAccelX( ) method, 75 Input.getAccelY( ) method, 75 Input.getAccelZ( ) method, 75 Input.getKeyEvents( ) method, 199 Input.getTouchEvents( ) method, 559 Input.getTouchX( ) method, 74 Input.getTouchY( ) method, 74 Input.isKeyPressed( ) method, 74, 199 Input.isTouchDown( ) method, 74 InputStreams, 75-76, 186, 567, 569 insertDynamicObject( ) method, 392 insertStaticObject( ) method, 392 Install New Software option, Help menu, 29

installLocation attribute, 105, 113 IntBuffer, 420-421 IntBuffer.put(int[]), 420 integration, numerical Euler, 365-366 Intent class, 118 <intent-filter> element, 108, 116 Intents, manifest file, 104 interfaces, implementing game, 281-288 Invader class, 601-604 INVADER_DEAD state, 604 Invader.java file, 602 invader.obj file, 585 invader.png file, 585 Invaders.update( ) method, 605

inVec, 527, 529, 556 lOException, 76, 79, 188 isFinishing( ) method, 123 isGameOver( ) method, 609 isKeyPressed( ) method, 199 isLooping( ) method, 191 isPlaying( ) method, 191 isPrepared flag, 190-192 isStopped( ) method, 191 isTouchDown( ) method, 204, 207

0 0

Post a comment