Read Foundation Game Design with ActionScript 3.0, Second Edition Online
Authors: Rex van der Spuy
function keyword,
42
fx icon,
77
game environments, scrolling,
456
–
463
adding objects to game,
458
–
459
game worlds,
59
,
100
,
106
–
108
,
119
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
checkGameOver( ) method,
248
–
250
,
276
,
442
,
448
,
453
,
478
,
487
,
503
createGameObjects( ) method,
333
–
334
,
338
,
440
end of game
endGame( ) method,
248
,
250
,
252
,
259
,
272
,
277
game environments, scrolling,
456
–
463
adding objects to game,
458
–
459
game worlds,
59
,
100
,
106
–
108
,
119
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
Killer Bee Pandemonium! game,
632
–
640
moving objects in scrolling game world,
522
–
537
obstacles and pathfinding,
540
firing star weapons in level two,
519
–
522
NumberGuessingGame( ) method,
210
,
222
,
271
,
274
NumberGuessingGame.as file,
271
playGame( ) method,
233
–
234
,
236
,
239
,
249
,
251
,
272
,
276
–
278
startGame( ) method,
210
–
211
,
222
,
224
,
239
,
247
,
271
,
274
,
473
,
476
status, displaying for game,
238
–
240
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
Giraffe( ) method,
482
GNU Image Manipulation Program (GIMP),
1
–
3
,
5
–
6
Gradient Tool,
103
graphic design software, required,
2
–
3
bevel and emboss effects,
96
–
100
rosy cheeks,
428
designing playing field,
429
–
430
drawing circles,
108
game worlds
and Photoshop
creating new file,
60
–
64
,
106
–
107
resources for,
119
rectangular selection tool,
100
–
106
type tool,
114
Gravity class,
560
grouping, layers, in Photoshop,
109
–
110
guesses, tracking,
280
health meter, reducing,
341
–
343
Hello World program,
9
HelloWorld( ) method,
28
–
29
,
33
,
35
,
42
HelloWorld.html,
39
HelloWorld.swf file,
39
hidden tools,
65
high-level programming languages,
52
History folder,
39
hitTestObject method, collision detection with,
331
–
336
,
357
–
364
advanced strategies for,
364
designing game within constraints of hitTestObject method,
359
–
360
hitTestPoint( ) method,
364
home page, Flash Builder,
11
HTML file,
39
humpBackNotation,
54
identifiers,
22
IDEs (integrated development environments),
3
Illustrator, Adobe.
See
Adobe Illustrator
Illustrator file,
392
images
embedding
character and background images,
310
–
312
loading and displaying,
123
–
158
code structure,
147
controlling Flash Player properties with metadata tag,
127
–
129
explanation of process,
132
–
134
setting up new projects,
124
–
126
import statements,
24
–
25
,
30
–
31
,
127
increment operator, and decrement operator,
184
–
185
Inner Bevel option,
97
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
JavaScript (JS) file,
39
JPEG file,
310
JS (JavaScript) file,
39
Jumping( ) method,
565
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
KEY_DOWN property,
229
keyDownHandler handler,
294
KEY_UP property,
294
keywords,
22
Killer Bee Pandemonium! game,
632
–
640
Layer Effects window,
99
Layer Style menu,
71