Read Foundation Game Design with ActionScript 3.0, Second Edition Online
Authors: Rex van der Spuy
But of course, this book isn't really finished—you're only halfway through.
Advanced Game Design with Flash
picks up where this book leaves off, and covers all the advanced techniques you'll need take your skills to a truly professional level.
As every game designer knows, making games is much more fun than playing them. Like an artist who's just learned how to mix paints and sketch out a few simple scenes, a bit of practice is all you'll need, and you'll be well on your way to creating that masterpiece. You've now got a solid foundation in game design with Flash and AS3.0—go and make some great games!
*/ character sequence,
35
/* character sequence,
35
// (two forward slashes) character,
35
{ } (curly braces) character,
22
–
25
,
28
–
30
,
41
–
43
acceleration, Acceleration class,
549
–
555
Acceleration( ) method,
549
ActionScript Compiler,
18
ActionScript editor window,
23
,
25
,
36
ActionScript file,
20
ActionScript Project dialog box,
12
Add Anchor Point tool,
84
adding breakpoints,
46
Adobe Flash Professional, required,
5
AI (Artificial Intelligence), enemy.
See
enemy AI
alpha property,
198
anchor points, for pen tool,
79
–
84
animation, Flash,
640
arguments, methods and parameters,
378
–
381
values,
380
Array( ) method,
580
,
582
,
584
–
585
,
592
–
593
,
598
ArrayLoop( ) method,
584
ArraySearch( ) method,
585
ArraysInsideArrays( ) method,
587
artwork, preparing for scrolling game environments,
457
–
458
AS3.0 programming language,
7
AS3.0 project,
12
Auto-Select Layers option,
104
Background class,
518
Background Contents,
106
–
108
,
111
background images, embedding character images and,
310
–
312
Background layer,
108
Background( ) method,
439
,
444
,
476
,
518
BackgroundImage( ) method,
308
,
311
,
315
,
518
backgrounds
scrolling,
313
BasicArray( ) method,
582
BasicCollisionDetection( ) method,
333
BasicScrolling( ) method,
308
,
311
BetterScrolling( ) method,
315
BetterScrolling.as file,
315
BigBackground( ) method,
458
Bitmap object,
145
block method, arguments with Collision class,
380
–
381
BlockingMovement class,
376
blocks of code, collapsing,
46
bodies, of characters,
416
Bomb class,
445
bombs
bounding boxes, detecting collisions with,
358
–
359
Box( ) method,
437
–
440
,
445
,
592
–
594
,
598
collisions between character and,
447
Breakpoint view,
47
breakpoints, in Flash Builder,
46
–
48
Browse button,
14
Build Automatically option,
18
bullets, firing with timer,
631
–
632
disabling at end of game,
272
–
273
displaying and positioning,
155
–
158
dot notation,
159
importing event class,
170
function definitions,
161
loading images and displaying,
263
–
265
method calls,
160
camel case,
54
canned code,
16
canvas,
61
car.crash( ) method,
335
Character class,
435
–
437
,
484
,
546
–
548
,
558
–
559
,
562
,
596
character images, embedding background images and,
310
–
312
Character( ) method,
435
,
437
,
439
,
444
,
484
,
547
,
549
,
565
,
570
,
598
character sequences,
35
Character.as class,
483
CharacterImage( ) method,
305
,
308
,
311
,
315
,
325
,
333
,
337
,
433
,
484
,
547
collisions between boxes and,
447
controlling with keyboard,
285
–
304
enterFrameHandler handler,
296
–
297
keyDownHandler handler,
294
drawing
body,
416
ending levels upon win by,
507
–
512
alpha property,
198
changing character size,
189
–
192
increment and decrement operators,
184
–
185
x and y properties,
198
collisions between character and monster,
487
order of code in enterFrameHandler event listener,
487
–
488
properties and methods,
482
–
484
rosy cheeks,
428
checkGameOver( ) method,
248
–
250
,
276
,
442
,
448
,
453
,
478
,
487
,
503
cheeks, drawing rosy,
428
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
circles, drawing,
108
class definition,
26
–
28
,
31
,
43
–
44
class keyword,
26
ClassConstructorMethod( ) method,
474
communicating between by dispatching events,
514
–
515
ClassName( ) method,
501
ClassName.methodName( ) method,
376
closing paths,
82
code, collapsing blocks of,
46
code editing window,
10
,
16
–
17
,
20
–
22
,
24
–
25
,
33
,
47
code formatting,
29
code structure,
147