Read Foundation Game Design with ActionScript 3.0, Second Edition Online
Authors: Rex van der Spuy
Layer Styles window,
97
layers, in Photoshop,
76
–
79
,
91
–
96
,
109
–
110
Layers palette,
95
Layers panel,
76
–
78
,
91
–
92
,
103
,
109
,
112
–
114
LevelCompleteImage( ) method,
506
LevelOne class,
467
–
468
,
471
,
473
,
475
,
485
–
486
,
491
–
492
,
506
_levelOne object, giving access to stage,
471
–
474
levels
finishing first,
518
firing star weapons in second,
519
–
522
LevelTwo.as file,
519
linking layers, in Photoshop,
109
–
110
listening, for key presses,
227
–
231
Loader( ) method,
130
,
149
,
200
,
204
–
205
,
269
,
274
,
287
,
291
,
304
Loader object,
132
–
134
,
143
,
198
,
304
looping
LoopingMusic( ) method,
573
LoopingThroughBoxes( ) method,
598
lower camel case,
54
makeButton( ) method,
269
–
271
,
274
–
275
MakingBoxes( ) method,
592
Math.abs method,
539
Math.ceil.Math.random( ) method,
256
–
257
,
480
,
493
,
538
–
539
Math.floor.Math.random( ) method,
255
,
257
,
272
,
276
Math.round.Math.random( ) method,
254
–
255
,
257
metadata tag, controlling Flash Player properties with,
127
–
129
MeterInsideImage( ) method,
342
MeterOutsideImage( ) method,
342
meters
scaling with scaleX property,
343
–
344
method calls,
160
methodName( ) method,
161
arguments, parameters and,
378
–
381
values,
380
modular programming with,
252
returning values,
380
MethodWithoutParameters( ) method,
163
MethodWithParameters( ) method,
166
Model View Controller (MVC),
278
modular programming, with methods,
252
moving objects in scrolling game world,
522
–
537
coding example,
523
obstacles and pathfinding,
540
MonsterMayhem( ) method,
468
,
510
MonsterMouthClosedImage( ) method,
490
MonsterMouthOpenImage( ) method,
490
MonsterNormalImage( ) method,
333
,
337
,
340
monster.openMouth( ) method,
478
,
499
monsters
checking for collisions between character and,
487
ending levels upon win by,
505
–
507
vanquishing and creating explosion,
500
–
503
MonsterScaredImage( ) method,
338
,
340
motion
of objects, controlling with mouse,
606
–
632
of objects in scrolling game world,
522
–
537
coding example,
523
mouse
fixing to mouse position,
606
–
607
rotating and shooting toward,
628
MouseEvent class,
170
–
171
,
174
,
286
MouseEvent type,
172
Move Tool,
69
–
70
,
75
,
92
–
94
,
103
–
104
,
114
movement
blocking at edges of stage,
298
–
303
incremental, of characters,
182
–
198
firing star weapons in level two,
519
–
522
moving objects in scrolling game world,
522
–
537
obstacles and pathfinding,
540
giving _levelOne object access to stage,
471
–
474
LevelOne class,
475
removing objects with removeChild method,
513
–
514
multiline comment,
35
Music( ) method,
573
MVC (Model View Controller),
278
MySQL database,
641
naming conventions,
54
New file dialog window,
60
New Style button,
99
Notepad,
4
disabling at end of game,
272
–
273
Number type,
226
NumberGuessingGame( ) method,
210
,
222
,
271
,
274
NumberGuessingGame.as file,
271
numbers
making program guess,
281
Object class,
226
objects
adding to game,
444
–
446
,
458
–
459
obstacles, and pathfinding,
540
Opacity option,
73
Open Perspective button,
50
Options bar,
66
–
67
,
69
,
90
,
92
,
101
,
104
,
107
,
111
,
114
outside shapes, of textured box,
396
–
398
overlapping, preventing,
365
–
373
package keyword,
42
pan setting, volume setting and,
572
–
574
ParallaxScrolling( ) method,
326
parameters, methods and arguments,
378
–
381
values,
380
Path Selection Tool,
83
pathfinding, obstacles and,
540
PDF file,
119
Perspectives feature, in Flash Builder,
48
–
52
creating clean compile of program,
51
–
52
creating release build of SWF file,
52
Photoshop,
2
bevel and emboss effects,
96
–
100
creating new file,
60
–
64
,
106
–
107
drawing circles,
108
rectangular selection tool,
100
–
106
resources for,
119
type tool,
114
Photoshop Elements,
3
picking up objects, and dropping objects,
351
–
357
volume and pan setting,
572
–
574
player control systems