Foundation Game Design with ActionScript 3.0, Second Edition (102 page)

BOOK: Foundation Game Design with ActionScript 3.0, Second Edition
9.69Mb size Format: txt, pdf, ePub
ads

friction,
555

557

Front command,
405
,
418

function definitions,
29
,
161

function keyword,
42

FX button,
77
,
103
,
112

fx icon,
77

G

game characters,
58
,
106

110

game environments, scrolling,
456

463

adding objects to game,
458

459

preparing artwork for,
457

458

and stage boundaries,
460

463

game object class,
546

548

game objects,
617

618

Game Over graphic,
430

431

game worlds,
59
,
100
,
106

108
,
119

hills,
76

79

sky,
64

76

GameObject class,
613
,
617
,
624
,
633

GameObjectImage( ) method,
435
,
437

GameOver class,
506

GameOver( ) method,
439
,
444
,
476
,
506

games

artwork, preparing for scrolling game environments,
457

458

background game world,
57

58

checkGameOver( ) method,
248

250
,
276
,
442
,
448
,
453
,
478
,
487
,
503

createGameObjects( ) method,
333

334
,
338
,
440

displaying status,
238

240

end of game

checking for,
349

351

overview,
453

456

endGame( ) method,
248
,
250
,
252
,
259
,
272
,
277

FlashGames folder,
14
,
21

game characters,
58
,
106

110

game environments, scrolling,
456

463

adding objects to game,
458

459

preparing artwork for,
457

458

and stage boundaries,
460

463

game object class,
546

548

game objects,
617

618

Game Over graphic,
430

431

game worlds,
59
,
100
,
106

108
,
119

hills,
76

79

sky,
64

76

GameObject class,
613
,
617
,
624
,
633

GameObjectImage( ) method,
435
,
437

GameOver class,
506

GameOver( ) method,
439
,
444
,
476
,
506

gameStatus variable,
245

GameWorld( ) method,
126
,
130
,
148

149
,
156
,
177
,
180
,
193
,
196
,
203

GameWorld.as file,
130
,
180
,
189
,
192
,
200

GameWorld.swf file,
142

hills, for game worlds,
76

79

Killer Bee Pandemonium! game,
632

640

Monster Mayhem game,
522

540

intelligent monsters,
537

540

moving objects in scrolling game world,
522

537

obstacles and pathfinding,
540

multilevel games,
465

543

firing star weapons in level two,
519

522

programming,
471

518

structure of,
466

470
,
541

542

number guessing game,
222

224

button,
271

279

structure of program,
222

224

NumberGuessingGame( ) method,
210
,
222
,
271
,
274

NumberGuessingGame.as file,
271

platform games,
545

604

motion using physics,
545

564

with multiple objects,
575

604

sound effects in,
567

574

playGame( ) method,
233

234
,
236
,
239
,
249
,
251
,
272
,
276

278

sky, for game worlds,
64

76

startGame( ) method,
210

211
,
222
,
224
,
239
,
247
,
271
,
274
,
473
,
476

status, displaying for game,
238

240

winning and losing,
246

252

gameStatus variable,
245

GameWorld( ) method,
126
,
130
,
148

149
,
156
,
177
,
180
,
193
,
196
,
203

GameWorld.as file,
130
,
180
,
189
,
192
,
200

GameWorld.swf file,
142

Generate HTML wrapper file option,
19
,
37

GIMP (GNU Image Manipulation Program),
1

3
,
5

6

GIMPshop plug-in,
3
,
6

Giraffe( ) method,
482

GNU Image Manipulation Program (GIMP),
1

3
,
5

6

Gradient Editor window,
72
,
74

Gradient Overlay option,
71
,
77

Gradient Tool,
103

gradients,
71

76

graphic design software, required,
2

3

graphics,
57
,
120
,
390

431

bevel and emboss effects,
96

100

bomb,
407

416

buttons,
110

118

copying,
115

117

drawing,
111

114

characters,
416

428

drawing,
416

421
,
426

428

eyes,
421

423

hair,
425

426

rosy cheeks,
428

smile,
424

425

designing playing field,
429

430

drawing circles,
108

game characters,
106

110

Game Over,
430

431

game worlds

hills,
76

79

sky,
64

76

layers,
76

79
,
91

96
,
109

110

pen tool,
79

91

anchor points and paths,
79

84

filling path with color,
88

91

making curves,
84

87

resizing paths,
87

88

and Photoshop

creating new file,
60

64
,
106

107

resources for,
119

and pixels,
62

64

rectangular selection tool,
100

106

textured box,
391

407

Adobe Illustrator,
391

392

choosing colors,
394

396

drawing shape of,
396

407

workspace,
393

394

type tool,
114

gravity,
559

561

Gravity class,
560

grouping, layers, in Photoshop,
109

110

guesses, tracking,
280

H

hair, drawing,
425

426

health meter, reducing,
341

343

Hello World program,
9

HelloWorld class,
27
,
29

HelloWorld( ) method,
28

29
,
33
,
35
,
42

HelloWorld.as file,
21

23
,
36

HelloWorld.html,
39

HelloWorld.swf file,
39

hidden tools,
65

high-level programming languages,
52

hills, for game worlds,
76

79

History folder,
39

History panel,
81

82
,
87
,
106

hitTestObject method, collision detection with,
331

336
,
357

364

advanced strategies for,
364

bounding box,
358

359

designing game within constraints of hitTestObject method,
359

360

subobjects,
360

363

hitTestPoint( ) method,
364

home page, Flash Builder,
11

HTML file,
39

HTML wrapper,
19
,
37
,
39

humpBackNotation,
54

I

identifiers,
22

IDEs (integrated development environments),
3

Illustrator, Adobe.
See
Adobe Illustrator

Illustrator file,
392

images

embedding

character and background images,
310

312

overview,
304

306

loading and displaying,
123

158

background.png image,
130

131

buttons,
263

265

code structure,
147

controlling Flash Player properties with metadata tag,
127

129

empty boxes,
136

137

explanation of process,
132

134

instances and objects,
137

140

setting up new projects,
124

126

setup file,
126

127

stage,
140

146
,
148

158

variables,
134

135

import keyword,
24
,
42

import statements,
24

25
,
30

31
,
127

increment operator, and decrement operator,
184

185

Inner Bevel option,
97

input fields,
218

222

inside shapes, of textured box,
398

407

instances, and objects,
137

140

int variable, uint variable vs.,
245

246

integrated development environments (IDEs),
3

internal classes,
26

interpreted programming languages,
53

J

JavaScript (JS) file,
39

JPEG file,
310

JS (JavaScript) file,
39

jumping,
561

564

Jumping( ) method,
565

K

key presses, listening for,
227

231

Keyboard class,
212
,
230

231
,
285

286
,
288

289

KeyboardControl class,
296

KeyboardControl( ) method,
291

KeyboardEvent class,
170
,
229
,
285
,
288
,
294

keyboards, controlling characters with,
285

304

enterFrameHandler handler,
296

297

keyDownHandler handler,
294

keyUpHandler handler,
294

296

right way,
290

292

screen wrapping,
302

304

stage,
298

303

velocity,
292

293

wrong way,
286

290

KEY_DOWN property,
229

keyDownHandler handler,
294

KEY_UP property,
294

keyUpHandler handler,
294

296

keywords,
22

Killer Bee Pandemonium! game,
632

640

L

Layer Effects window,
99

Layer Style menu,
71

Layer Style window,
71

72
,
75

77
,
97

99
,
112

113

BOOK: Foundation Game Design with ActionScript 3.0, Second Edition
9.69Mb size Format: txt, pdf, ePub
ads

Other books

Whiskey Lullaby by Martens, Dawn, Minton, Emily
Switcheroo by Goldsmith, Olivia
Clandara by Evelyn Anthony
Bad to the Last Drop by Debra Lewis and Pat Ondarko Lewis
Roll the Dice by Mimi Barbour
Great Bicycle Race Mystery by Gertrude Chandler Warner
Jane Doe No More by M. William Phelps
Lady Parts by Andrea Martin