D

Dalvik Debugging Monitor Server

(DDMS), 46-48 Dalvik virtual machine, 7-9 DDMS (Dalvik Debugging Monitor

Server), 46-48 DDMS option, 46 Debug Configurations option, 43 Debug view, 44

debuggable attribute, 106, 113 debugging applications, 42-48 Dedicated hardware keys, 13 default Activity class, 232-237 Assets class, 233 LoadingScreen class, fetching assets from disk, 236-237 Settings class, saving user choices and high scores, 234-235

default.properties, 34 delta time, 95 density, 210-211 design, 60-70

core game mechanics, 61-63 screens and transitions, 64-70 story and art style, 63-64 developer community, 12 developer console, 632, 634-636 developer registration, 626-627 development environment, 25-32 Android SDK, setting up, 26-27 Eclipse installing, 28

installing ADT plug-in, 28-30 using, 30-32 JDK, setting up, 26 device emulator, 11 devices, 6-7, 12-20 Devices view, 47 Diffuse color, 532-533 digital rights management (DRM), 22, 633

directional lights, 532, 538-539 DirectionalLight, 545 directions and distances, 352 disable( ) method, 537 disks, fetching assets from, 236-237 dispose( ) method, 189, 191, 561 dist( ) method, 383, 530 distSquared( ) method, 383, 530 Documentation component, 27 double-buffering, of graphics, 82-83. See also framebuffers, and graphics draw( ) method, 320, 543 drawable folder, 114 drawGameOverUI( ) method, 266 drawing bitmaps, 170-171 simple shapes, 164-168 circles, 166 lines, 165 pixels, 165 rectangles, 166 test activity, 166-168

drawLine( ) method, 219 drawPausedUI( ) method, 266 drawPixel( ) method, 219 drawPixmap( ) method, 219-220 drawReadUI( ) method, 266 drawRect( ) method, 219 drawRunningUI( ) method, 266 drawText( ) method, 246, 266, 450-451 drawWorld( ) method, 265 DRM (digital rights management), 22, 633

Droid Invaders game, 577-623 Activity class, 591-592 Assets class, 587-590 backstory and art style, 579 core mechanics, 577-579 creating assets, 582-586 game, 584-586 sound and music, 586 UI, 582-584 defining world, 581-582 GameScreen class, 610-617 main menu screen, 592-595 optimizations, 622-623 screens and transitions, 580 Settings class, 590-591 settings screen, 595-597 simulation classes, 598-610 Invader class, 601-604 Shield class, 598 Ship class, 599-601 Shot class, 598-599 World class, 604-610 WorldRender class, 617-622 DroidInvaders class, 589 .droidinvaders file, 590 DroidInvaders.java file, 591 DroidInvaders.onResume( ) method, 589

DynamicGameObject class, 386-387, 395, 397, 424-425, 460, 462 DynamicGameObject3D class,

574-576, 600 DynamicGameObject.acceleration, 397

0 0

Post a comment