S

s argument, 49

Samples component, 27

sampling rate, 77

scaling, 335

Scoreloop service, 637

scores, saving high, 234-235

Screen classes, 96-97, 236, 285, 287,

298, 352 Screen density, 115 Screen implementations, 97-98, 286-288, 297, 302, 352 Screen instances, 98 Screen interface, 227 screen resolution, 163-164 Screen.dispose( ) method, 98 screenOrientation attribute, 107, 113 Screen.pause( ) method, 98 Screen.present( ) method, 98, 220 Screen.render( ) method, 278 Screen.resume( ) method, 98, 284 screens

Droid Invaders game, 580 and game design, 64-70 handling different sizes and resolutions, 210-215 aspect ratios, 211-212 creating virtual framebuffer

Bitmap instance, 214 density, 210-211 implementation, 214-215 Super Jumper game, 431-432 Screen.update( ) method, 98, 220, 222, 256

script android, 27 SD (Secure Digital) card, 6 SDK add-ons component, 26 SDK manager.exe file, 27 SDK (software development kit), 11 Secure Digital (SD) card, 6 SensorEventListener interface, 141, 143, 194

SensorEventListener.onSensorChanged ( ) method, 142

SensorManager class, 144, 194 SensorManager system service, 141 SensorManager.registerListener( )

method, 141 server component, 48 Set class, 182 set( ) methods, 358 setAngles( ) method, 555 setDirection( ) method, 539 setFilters( ) method, 315 setIndices( ) method, 320, 542 setListAdapter( ) method, 117 setMatrices( ) method, 556, 564 setPosition( ) method, 539 setScreen( ) method, 226 Settings class, 234-235, 447-448,

590-591 Settings option, 580 settings screen, 595-597 Settings.highscores array, 246 Settings.java file, 590 Settings.load( ) method, 237 Settings.save( ) method, 595 SettingsScreen.java file, 595 Settings.soundEnabled boolean value, 239

Settings.touchEnabled field, 610 setVertices( ) method, 320, 542 setViewportAndMatrices( ) method, 403 shapes, bounding in 3D programming,

373-377, 572-573 Shield class, 598 Shield.java file, 598 shield.obj file, 585 Ship class, 599-601 SHIP_ALIVE state, 600 SHIP_EXPLODING state, 600 Ship.java file, 599 Ship.kill( ) method, 608 ship.obj file, 584 ship.png file, 584 Ship.update( ) method, 606 shoot( ) method, 609 ShortBuffer, 315-316, 319, 340, 570 Shot class, 598-599 Shot.java file, 598

shot.obj file, 585 shot.ogg file, 586

Show View option, Window menu, 31 signed export dialog box, 628 simulation classes, 459-475, 598-610 Bob,465-467 Castle, 461-462 Coin, 461

game over-checking method,

474-475 Invader class, 601-604 Platform, 463-464 Shield class, 598 Ship class, 599-601 Shot class, 598-599 Spring, 460 Squirrel, 462-463 World class, 467-475, 604-610 collision detection and response,

472-474 generating, 468-470 updating, 470-472 single-touch events, processing, 127-131

SingleTouchHandler class, 201-204,

208, 215, 225 SingleTouchHandler.getTouchEvents( )

method, 204, 207 SingleTouchHandler.onTouch( )

method, 206 Skia (Skia Graphics Library), 9 Slick-AE framework, 639 Snake class, 250-255, 258 Snake instance, 257 Snake.advance( ) method, 256 SnakePart class, 250-255 social media integration, 637 software development kit (SDK), 11 sound and music, 442-443, 586 physics of, 76 Sound class, 187-192 sound effects, playing, 150-154 Sound instances, 79, 445-446 Sound interface, 79-80, 189 Sound reference, 444

soundEnabled, 234 SoundPool class, 150, 153, 158,

187-189 SoundPool instance, 187, 189 SoundPool.load( ) method, 151, 153 SoundPool.play( ) method, 153-154 SoundPool.release( ) method, 151 SoundPool.unload( ) method, 151 SparseArray class, 178 spatial hash grids, 385, 387-394 SpatialHashGrid class, 395-396, 475, 486

SpatialHashGrid.getCellIds( ) method, 390, 393

SpatialHashGrid.getPotentialColliders( )

method, 397 SpecTrek, 60 Specular color, 532-533 Sphere class, 573-574 Spotlights, 532 Spring class, 460-461 Springs member, 468 SpriteBatcher class, 412-421

bug in FloatBuffer method, 420-421 measuring performance, 419-420 SpriteBatcher instance, 450, 459 SpriteBatcher method, 419-420 SpriteBatcher reference, 483 SpriteBatcher.beginBatch( ) method, 413

SpriteBatcher.drawSprite( ) method,

413-414, 416, 440 SpriteBatcher.endBatch( ) method, 413 SpriteBatcherTest, 421 sprites animation, 422-428

Animation class, 423-424 example, 424-428 and batches, SpriteBatcher class, 412-421 Squirrel class, 462-463 Squirrel instance, 472 Squirrels member, 468 Squirrel.update( ) method, 464 SQUIRREL_VELOCITY, 463 src/ directory, 34

Stain class, 250

Stain instance, 257

stainl .png, 231

stain2.png, 231

stain3.png, 231

stains, placing, 256

startActivity( ) method, 119

state changes, removing unnecessary.

341-343 state member, 283 state variable, 465 stateChanged member, 283 stateTime variable, 424, 465-466 stereo sound, 77 stop( ) method, 192 Stopped state, 121 storage, accessing external, 146-150 story, and game design, 63-64 streaming music, 154-158 strings.xml file, 106 string.xml file, 107

strips, OpenGL ES standard, 325-326 sub( ) method, 359, 528 sun class, 518 sun object, 518 sun.update( ) method, 524 Super Jumper game, 429-487 backstory and art style, 430-431 core mechanics, 429-430 creating assets, 435-443 game elements, 439-441 handling text with bitmap fonts,

437-439 music and sound, 442-443 texture atlas, 441-442 UI elements, 435-437 defining world, 432-435 implementing, 444-486 Activity class, 448-449 Assets class, 444-447 Font class, 449-451 game screen, 475-482 GLScreen class, 451 help screen, 454-457 high-scores screen, 457-459 main menu screen, 451-454

Settings class, 447-448 simulation classes, 459-475 WorldRenderer class, 482-486 optimizing, 486-487 screens and transitions, 431-432 SuperJumper class, 448, 456 .superjumper file, 448 SuperJumper.getStartScreen( ) method, 451

Surface class, 178 surface creation, 178-179 SurfaceHolder class, 178, 221 SurfaceHolder.getSurface( ).isValid( )

method, 181 SurfaceHolder.lock( ) method, 182 SurfaceHolder.lockCanvas( ) method,

178-179 SurfaceHolder.unlockAndPost( )

method, 178 SurfaceView class, continuous rendering with, 177-182 motivation, 178 surface creation and validity,

178-179 SurfaceHolder class and locking methods, 178 test activity, 179-182 switch statement, 135 symbolic toggle button, 65 system libraries, 9-10 System.nanoTime( ) method, 222, 605

Make Money Messing Around On Facebook

Make Money Messing Around On Facebook

In this short guide you are going to learn exactly how you can start earning money in as little as 24 hours, doing the things that you already do on Facebook! Did you know that social media has become one of the biggest drivers of sales and new customers for businesses? Companies that used to spend millions of dollars on radio advertising, TV commercials and billboard signs, are now shifting huge chunks of their marketing budgets to social media sites like Facebook.

Get My Free Ebook


Post a comment