Read Foundation Game Design with ActionScript 3.0, Second Edition Online
Authors: Rex van der Spuy
collapsing blocks of code,
46
collapsing code, in Flash Builder,
45
Collision class,
434
,
447
,
596
–
597
,
602
block method arguments with,
380
–
381
with hitTestObject method,
331
–
336
,
357
–
364
advanced strategies for,
364
designing game within constraints of,
359
–
360
detecting collisions with bounding box,
358
–
359
triggering change of state,
337
–
357
picking up and dropping objects,
351
–
357
scaling meter with scaleX property,
343
–
344
Collision.block method,
381
–
387
methods, arguments, and parameters,
378
–
381
preventing objects from overlapping,
365
–
373
programming with Collision class,
373
–
378
Collision( ) method,
381
,
383
–
384
Collision.block method,
376
–
377
,
381
–
387
,
447
,
540
,
575
collisions
between character and boxes,
447
checking for
collisions between character and monster,
487
Color Library button,
67
color midpoint,
74
Color Picker window,
67
–
68
,
73
,
102
Colors panel,
99
compressed file format,
105
computer programming code editor,
2
constructor method,
20
,
27
–
32
,
44
,
54
content debugger,
4
context sensitive,
66
control systems, player
advanced,
623
firing bullets with timer,
631
–
632
rotating and shooting toward mouse,
628
running away from player,
627
–
628
firing projectiles in all directions,
613
–
623
rotating wand around fairy,
618
–
620
Killer Bee Pandemonium! game,
632
–
640
moving objects with mouse,
606
–
632
fixing to mouse position,
606
–
607
Create new layer button,
79
,
114
createGameObjects( ) method,
333
–
334
,
338
,
440
cross-platform,
7
curly braces,
22
–
25
,
28
–
30
,
41
–
43
debugging perspective,
37
loading images and displaying,
263
–
265
changing variable values with postfix operators,
240
gameStatus variable,
245
modular programming with methods,
252
uint vs. int variables,
245
–
246
displaying game status,
238
–
240
making program guess number,
281
tracking guesses,
280
visual display,
281
configuring and displaying,
216
–
222
TextFormat and TextField objects,
213
–
214
decrement operator, increment operator and,
184
–
185
Delete Anchor Point Pen tool,
84
detection, of collisions,
331
–
387
with hitTestObject method,
331
–
336
,
357
–
364
advanced strategies for,
364
designing game within constraints of,
359
–
360
detecting collisions with bounding box,
358
–
359
triggering change of state,
337
–
357
picking up and dropping objects,
351
–
357
scaling meter with scaleX property,
343
–
344
Collision.block method,
381
–
387
methods, arguments, and parameters,
378
–
381
preventing objects from overlapping,
365
–
373
programming with Collision class,
373
–
378
display section,
24
displays, visual,
281
DistantBackgroundImage( ) method,
325
dot notation,
159
down buttons, up buttons and,
180
–
182
dropping objects, picking up objects and,
351
–
357
Duplicate Layer dialog box,
91
eatLeaves( ) method,
483
Eclipse,
4
editing window, in Flash Builder,
45
–
48
collapsing code,
45
Elliptical Marquee Tool,
108
EmbeddedFonts( ) method,
283
embedding
images
character and background,
310
–
312
end of game
endGame( ) method,
248
,
250
,
252
,
259
,
272
,
277
firing bullets with timer,
631
–
632
rotating and shooting toward mouse,
628
running away from player,
627
–
628
enterFrameHandler event listener, order of code in,
487
–
488
enterFrameHandler handler,
296
–
297
environments
configuring Flash Player in,
17
–
20
creating new ActionScript project,
12
–
17
adding objects to game,
458
–
459
Essentials workspace,
59
event listeners
EventListener( ) method,
169
importing event class,
170
explode( ) method,
502
Explosion( ) method,
479
,
501
–
502
,
536
–
537
explosion.explode( ) method,
479
,
501
–
502
ExplosionImage( ) method,
502
explosions
motion of in game world,
536
–
537
vanquishing monsters and creating,
500
–
503
extends keyword,
27
eye icon,
76
–
77
,
108
,
115
,
117
–
118
fairies, rotating wand around,
618
–
620
Fill pixels option,
112
firing
projectiles, in all directions,
613
–
623
fixing objects, to mouse position,
606
–
607
Flash animation, and publishing,
640
collapsing code,
45
configuring Flash Player in,
17
–
20
creating new ActionScript project,
12
–
17
creating clean compile of program,
51
–
52
creating release build of SWF file,
52
Flash Develop,
3
Flash file,
20
Flash perspective,
48
Flash Player
configuring in Flash Builder,
17
–
20
controlling properties with metadata tag,
127
–
129
flash section,
24
flash.display section,
24
Foreground color box,
68
,
94
,
111
ForegroundImage( ) method,
325
ForLoop( ) method,
577
Freeform Pen Tool,
91