Index

A

AllTogether game, 87, 88

analyzing games, 165, 166

Android, 1, 3

3.0 features, 2, 3

history, 1, 2

requirements for, 3, 4

hardware, 4

knowledge, 3, 4

Android games

testing on device, 179, 180

Android SDK

installing, 10, 15

Android tools

adding to Eclipse IDE, 15, 18

applications

polishing, 167, 171

responding to Start Game button press, 170, 171

splash screen, 167, 170

apps

making changes to, 25

running, 24, 25, 40, 41

attack boats

deploying and managing, 159, 160

B

ball and paddle game, 103, 120

collision detection and event handling, 109, 114

gathering resources for, 103, 104

preparing environment for, 106, 109

GameView.java file, 106, 109

SpriteObject.java file, 106

rewards

blocks, 116, 120

sounds, 115

touch control

of paddle, 114, 115

blocks

instantiating, 116, 118

removing dead, 118, 120

Bluetooth connections, 124, 135

managing, 135

boats

attack

deploying and managing, 159, 160

for Harbor Defender game, 143, 145

C

cannons

firing, 160, 163

for Harbor Defender game, 145, 146

castles

for Harbor Defender game, 142, 143

collision detection

and event handling, 109, 114

collisions

between sprites

detecting, 89, 90

of sprites

detecting, 44

controls

user, 153, 158

D

debugging

Harbor Defender game, 147, 149

deploying, 174, 177

opening Google Developer account, 176

uploading game to Google Market, 177

devices

testing Android games on, 179, 180

E, F

Eclipse IDE

adding Android tools and Virtual Device to, 15, 18

installing, 8, 10

environment, 5, 18

Android SDK

installing, 10, 15

Eclipse IDE

adding Android tools and Virtual Device to, 15, 18

installing, 8, 10

Java JDK

installing, 5, 8

requirements for, 3, 4

hardware, 4

knowledge, 3, 4

testing, 18, 26

creating Android project, 19, 21

creating Virtual Android device, 23, 24

exploring Android project in Eclipse, 22, 23

making changes to app, 25

running app, 24, 25

event handling

collision detection and, 109, 114

responding to Start Game button press, 170, 171

events

matching sound effects to, 76

G

game code

adapting for two-player games, 135, 136

game loop

for using sprites, 36, 38

game process

for user input, 48, 50

GameView.java file, 106, 109

gestures

responding to, 53, 57

Google Developer

opening account with, 176

Google Market

uploading to, 177

ground

for Harbor Defender game, 142, 143

H

Harbor Defender game, 138

assembling, 138, 147

boats, 143, 145

cannons, 145, 146

ground and castle, 142, 143

images, 146, 147

pier, 139, 142

debugging, 147, 149

hardware

requirements, 4

I

images, 27, 41

and sprites, 34, 40

creating, 38, 40

game loop for, 36, 38

rendering of, 34, 36

and View class, 31

for Harbor Defender game, 146, 147

for sprites, 92

rendering of, 31, 32, 34

input queues, 57, 63

J, K, L

Java JDK

installing, 5, 8

marketing, 177, 178

M, N

motion

complex, 42, 44

motion control

upgrading, 89

multiplayer methods

choosing, 123, 124

music, 69, 77, 78

managing, 78

O

one-player games, 87, 102, 137, 149

AllTogether, 87, 88

coding, 151, 166

analyzing game, 165, 166

deploying and managing attack boats, 159, 160

enhancing sprites, 152, 153

firing cannons, 160, 163

managing outcomes, 163, 164

putting features on screen, 158, 159

user controls, 153, 158

Harbor Defender, 138

assembling, 138, 147

debugging, 147, 149

reward for winning, 92, 93

sprites

tracking state of, 93, 102

upgrading, 89, 92

options

for user input, 47, 48

outcomes

managing, 163, 164

P, Q

P2P (peer-to-peer) networks

two-player games with, 122, 136

adapting code for, 135, 136

Bluetooth connections, 124, 135

testing, 136

packaging, 171, 174

paddles

touch control of, 114, 115

piers

for Harbor Defender game, 139, 142

professional look, 41, 42

projects

creating, 19, 21

exploring in Eclipse, 22, 23

publishing, 167, 178

deploying, 174, 177

opening Google Developer account, 176

uploading to Google Market, 177

marketing, 177, 178

packaging, 171, 174

polishing application, 167, 171

responding to Start Game button press, 170, 171

splash screen, 167, 170

R

rendering

of images, 31, 32, 34

of sprites, 34, 36

requirements

for Android development, 3, 4

hardware, 4

knowledge, 3, 4

responding

to gestures, 53, 57

to sensor data, 63, 66

to touch, 50, 53

rewards

blocks

instantiating, 116, 118

removing dead, 118, 120

for winning, 92, 93

S

screens

putting features on, 158, 159

splash, 167, 170

sensor data

responding to, 63, 66

servers

two-player games through, 122

sound effects, 69, 76

finding and adding, 70, 71

managing multiple, 71, 76

matching to events, 76

playing, 71

sounds, 115

splash screens, 167, 170

SpriteObject.java file, 106

sprites, 34, 40

creating, 38, 40

detecting collisions of, 44

enhancing, 152, 153

game loop for using, 36, 38

rendering of, 34, 36

tracking state of, 93, 102

upgrading, 89, 92

detecting collisions between sprites, 89, 90

finer motion control, 89

images for sprites, 92

multiple sprites, 90, 92

Start Game button

responding to press, 170, 171

states

of sprites

tracking, 93, 102

T

TabletPaddle project. See ball and paddle game

testing

Android games

on device, 179, 180

two-player games with P2P networks, 136

timing, 42, 44

touch

responding to, 50, 53

touch control

of paddle, 114, 115

tracking

state of sprites, 93, 102

two-player games, 121, 136

choosing multiplayer method, 123, 124

through server, 122

with P2P network, 122, 136

adapting code for two players, 135, 136

Bluetooth connections, 124, 135

testing, 136

U

user controls, 153, 158

user input, 47, 68

game process for, 48, 50

gestures

responding to, 53, 57

input queues, 57, 63

options for, 47, 48

sensor data

responding to, 63, 66

touch

responding to, 50, 53

V

video, 69, 78

View class

and images, 31

Virtual Device

adding to Eclipse IDE, 15, 18

creating, 23, 24

W, X, Y, Z

winning

rewards for, 92, 93

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.187.18