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

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

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!

Index
Special Numbers and Characters

*/ character sequence,
35

/* character sequence,
35

// (two forward slashes) character,
35

; (semicolon) character,
24
,
33

{ } (curly braces) character,
22

25
,
28

30
,
41

43

A

acceleration, Acceleration class,
549

555

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

addChild( ) method,
160
,
445

adding breakpoints,
46

Adobe Flash Professional, required,
5

Adobe Illustrator,
2
,
391

392

AI (Artificial Intelligence), enemy.
See
enemy AI

alignment of code,
29

32

alpha property,
198

anchor points, for pen tool,
79

84

animation, Flash,
640

antennae, drawing,
416

421

arguments, methods and parameters,
378

381

Collision class,
380

381

values,
380

Array( ) method,
580
,
582
,
584

585
,
592

593
,
598

ArrayLoop( ) method,
584

arrays,
580

589

inside arrays,
586

589

looping,
583

584

pushing elements into,
582

583

searching,
584

586

ArraySearch( ) method,
585

ArraysInsideArrays( ) method,
587

artwork, preparing for scrolling game environments,
457

458

.as files,
20

22
,
43

AS3.0 programming language,
7

AS3.0 project,
12

Auto-Select Layers option,
104

B

Background class,
518

Background Contents,
106

108
,
111

background game world,
57

58

background images, embedding character images and,
310

312

Background layer,
108

Background( ) method,
439
,
444
,
476
,
518

BackgroundImage( ) method,
308
,
311
,
315
,
518

background.png image,
130

131

backgrounds

positioning,
312

313

scrolling,
313

BasicArray( ) method,
582

BasicCollisionDetection( ) method,
333

BasicScrolling( ) method,
308
,
311

BetterScrolling( ) method,
315

BetterScrolling.as file,
315

bevel effect,
96

100

BigBackground( ) method,
458

bin-debug folder,
36
,
38

Bitmap object,
145

black arrow,
83
,
87

91

blank canvas,
62

63
,
68
,
107
,
111

block method, arguments with Collision class,
380

381

block statement,
23
,
26
,
28

31

BlockingMovement class,
376

blocks of code, collapsing,
46

bodies, of characters,
416

Bomb class,
445

Bomb( ) method,
439
,
445

bombs

defusing,
447

448

overview,
407

416

Bounce( ) method,
568

570
,
598

bouncing,
557

559

bounding boxes, detecting collisions with,
358

359

Box class,
436

438
,
445
,
591
,
596

Box( ) method,
437

440
,
445
,
592

594
,
598

boxes,
589

596

collisions between character and,
447

empty,
136

137

textured,
391

407

Adobe Illustrator,
391

392

choosing colors,
394

396

drawing shape of,
396

407

workspace,
393

394

Breakpoint view,
47

breakpoints, in Flash Builder,
46

48

Breakpoints window,
47
,
50

Browse button,
14

bubbling events,
516

518

Build Automatically option,
18

bullets, firing with timer,
631

632

buttons,
158

178
,
260
,
270

279

disabling at end of game,
272

273

displaying and positioning,
155

158

dot notation,
159

drawing,
110

118

events,
168

177

handler for,
171

173

importing event class,
170

listener for,
170

171

names of,
174

177

function definitions,
161

loading images and displaying,
263

265

managing complex code,
278

279

method calls,
160

methods,
159

168

mouse events,
265

270

Buttons( ) method,
269

270

Buttons.as file,
262
,
268
,
271

C

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

characters,
285

329
,
416

428

collisions between boxes and,
447

controlling with keyboard,
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

drawing

antennae,
416

421

body,
416

shoes,
426

428

embedding images,
304

306

ending levels upon win by,
507

512

eyes,
421

423

hair,
425

426

moving incrementally,
182

198

alpha property,
198

changing character size,
189

192

increment and decrement operators,
184

185

limiting movement,
185

188

spinning,
195

197

tracing output,
183

184

vanishing,
192

195

x and y properties,
198

programming,
482

488

collisions between character and monster,
487

moving,
485

486

order of code in enterFrameHandler event listener,
487

488

properties and methods,
482

484

stage boundaries,
486

487

rosy cheeks,
428

scrolling,
307

323

code summary,
310

313

improving,
313

323

parallax,
324

329

smile,
424

425

checkGameOver( ) method,
248

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

cheeks, drawing rosy,
428

choices, making,
209

284

buttons,
260

270

loading images and displaying,
263

265

mouse events,
265

270

changing variable values with postfix operators,
240

gameStatus variable,
245

modular programming with methods,
252

strings,
241

245

uint vs. int variables,
245

246

winning and losing,
246

252

displaying game status,
238

240

embedding fonts,
281

282

improving programming,
253

260

disabling Enter key,
258

260

random numbers,
254

258

number guessing game,
222

224

button,
271

279

structure of program,
222

224

project extensions,
279

281

making program guess number,
281

Play again button,
279

280

tracking guesses,
280

visual display,
281

text,
210

222

basic program,
210

212

configuring and displaying,
216

222

importing classes,
212

213

setting format of,
214

216

TextFormat and TextField objects,
213

214

variables,
224

231

circles, drawing,
108

class definition,
26

28
,
31
,
43

44

class keyword,
26

ClassConstructorMethod( ) method,
474

classes,
25

27

communicating between by dispatching events,
514

515

definition of,
434

439

importing,
212

213

ClassName( ) method,
501

ClassName.methodName( ) method,
376

clean compile,
51

52

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

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

Other books

Castleview by Gene Wolfe
Golden Age by Jane Smiley
A Boy in the Woods by Gubin, Nate
Die and Stay Dead by Nicholas Kaufmann
Wishing On A Starr by Byrd, Adrianne
The Serpent Prince by Elizabeth Hoyt
For the Night: Complete Box Set by C. J. Fallowfield
Dark Dreams by Michael Genelin
An Unlucky Moon by Carrie Ann Ryan