C

calculateInputAcceleration( ) method, 614

Camera OpenGL ES, 272 Camera2D class, 402-403, 419,

425-426, 559, 561 Camera2D instance, 424, 452, 474 Camera2DScreen class, 403 Camera2D.setViewportAndMatrices( )

method, 404 Camera2DTest, 403, 407 Camera2D.touchToWorld( ) method,

404 cameras in 2D programming, 399-405 Camera2D class, 402-403 example, 403-405 3D programming, 553-564 Euler, 553-556 look-at, 562-564 first-person. See Euler cameras simple system in 3D, 520-524 Cannon class, 386-387 Cannon object, 395, 397, 412 CannonGravityScreen, 369, 396 CannonGravityTest, 369, 396-397 CannonScreen, 362 CannonTest class, 362, 368-369 cannonVertices.draw( ) method, 409 Canvas class, 164-165, 170, 269, 272,

292, 321, 550, 552 Canvas.drawBitmap( ) method, 214,

219, 222 Canvas.drawLine( ) method, 219 Canvas.drawPoint( ) method, 219 Canvas.drawRect( ) method, 219 Canvas.drawRectangle( ) method, 166 Canvas.drawRGB( ) method, 161, 218 Canvas.drawText( ) method, 175, 177 Canvas.getClipBounds( ) method, 222 Canvas.getHeight( ) method, 163 Canvas.getWidth( ) method, 163, 177 Castle class, 461-462 Castle member, 468 CASTLE_HEIGHT constant, 462 CASTLE_WIDTH constant, 462 casual games, 22 <category> element, 108 causal games, 52-54

Caveman array, 425 Caveman class, 424-425 Caveman.update( ) method, 426 celllds array, 391-392 checkBitten( ) method, 255 checkCollisions( ) method, 472 checklnvaderCollisions( ) method, 608 checkltemCollisions( ) method, 474 checkPlatformCollisions( ) method, 473 checkShotCollision( ) method, 606 checkShotCollisions( ) method, 609 checkSquirrelCollisions( ) method, 473 chip tunes, defined, 442 Circle class, 379, 574 circle collisions, 379-380 Circle overlap, 574 circle/rectangle collisions, 382-383 circles, 166 .class files, 8

Class.forName( ) method, 119 clear( ) method, 218, 294 clearDynamicCells( ) method, 392 click.ogg file, 586 client component, 48 Coin class, 461 Coins member, 468 COlN_SCORE, 474 collision detection, 472-474 broad phase, 384-385 example, 386-399 coding, 395-399 GameObject, DynamicGameObject, and Cannon classes, 386-387 spatial hash grid, 387-394 narrow phase, 379-384 circle collision, 379-380 circle/rectangle collision,

382-383 coding, 383-384 rectangle collision, 381-382 and object representation, 572-576 bounding shapes in 3D, 572-573 bounding sphere overlap testing, 573-574

GameObject3D and DynamicGameObject3D classes, 574-576 CollisionGravityTest, 398 CollisionScreen class, 395, 403 CollisionTest class, 395-396 CollisionTest file, 403 color defined, 83-84 encoding digitally, 85-86 models for, 84

specifying per vertex, 300-304 Color class, 165 color cube, 84

ColoredTriangleTest.java file, 302 com.badlogic.androidgames package,

117, 119, 124 com.badlogic.androidgames.droidinvad ers package, 587 com.badlogic.androidgames.framework package, 185, 277 com.badlogic.androidgames.framework

.gl package, 534 com.badlogic.androidgames.framework

.impl package, 185 com.badlogic.androidgames.framework

.math, 358 com.badlogic.androidgames.gl3d, 489 com.badlogic.androidgames.gladvance d, 525

com.badlogic.androidgames.glbasics, 277

com.badlogic.androidgames.mrnom package, 232 Command-line utilities, 11 compositing, 88 compression of audio, 77-78 of graphics, 87 Config class, 218 configChanges attribute, 108, 113 Configuration class, 225 connecting devices, 38 connectivity, permanent, 21-22 Console view, 44

Content providers, manifest file, 104

content View, 37

Context interface, 119, 141, 144, 150 continuous rendering with SurfaceView class, 177-182 motivation, 178 surface creation and validity,

178-179 SurfaceHolder class and locking methods, 178 test activity, 179-182 in UI thread, 160-163 coordinate systems, 163-164 coordinates, texture mapping, 304-306 CPU/GPU department, 15 cpy( ) method, 358, 528 crate solar system, 514-515 crate.png file, 510 Create state, 71

558-559, 570 createMipmaps( ) method, 551-552 createObject( ) method, 195 cube.obj file, 570 cubes, defining meshes, 505-508 CubeScreen class, 508, 518 CubeTest class, 508, 518

0 0

Post a comment