Macromedia Flash MX 2004 Game Programming (Premier Press Game Development)

G

games

backgammon, 534, 544

Blow 'Em Up

collision detection, 477 “478, 487 “488

designing, 456 “461

double shots, 454 “455, 461, 488 “491

ending, 466 “467

files, 452 “456

firing, 473 “476

freezing, 454 “455, 461, 488 “491

hyperspace , 452

idea, 450 “452

implementing, 462 “492

initializing, 457, 462 “463

iterating clips, 466

libraries, 452 “456

listing, 492 “502

lives, 454 “455, 461, 488 “491

moving objects, 468 “472, 480 “487

powerups , 454 “455, 461, 488 “491

resetting, 467 “468

rotating objects, 459 “460, 468, 470 “471, 475, 479, 485 “486

scoreboard, 455 “456

shields , 452, 454 “455, 458, 461, 473, 488 “491

sound, 491 “492

starting, 457, 463 “466

testing, 492

trigonometry, 471, 475, 485 “486

button menu

creating buttons , 167 “168

designing, 164 “166

event handlers, 169 “170, 173 “178

files, 165 “166

functionality, 170 “171, 178 “179

idea, 164

implementing, 167 “179

initializing buttons, 168

libraries, 165 “166

listing, 179 “181

moving buttons, 168 “169

scaling buttons, 168 “169

state, 171, 173 “178

symbols, 165

text, 166, 171 “173

chat rooms, 690

checkers, 534, 544

chess, 534, 544

Connect 4, 534

Critter Attack

alignment, 334

background, 353 “354

collision detection, 346 “350

idea, 333 “334

implementing, 334 “357

instructions, 358

listing, 359 “367

moving, 338 “352

object depths, 335

objects, 337 “352

resetting, 352 “353

scoreboard, 336

size , 334

sound, 354 “357

speed, 336

testing, 358

timeline, 334

designing

board, multidimensional arrays, 208

flexibility, 380

function stubs, 393

OOP, 505 “506

scripts, 398

steps, 108 “109

Web sites, 721

go, 544

mancala, 544

marbles

designing, 597

files, 597

idea, 596

implementing, 597 “601

initializing, 597 “598

libraries, 597

testing, 601 “602

Match 'Em Up

algorithms, 210 “211

conditional statements, 217 “222

files, 210

functionality, 210 “211

idea, 210

implementing, 211 “222

libraries, 210

listing, 226 “229

pausing, 223 “226

resetting, 222 “223

scripts, 210 “211

testing, 222 “226

tiles, 212 “216, 219 “221

Mouse Chaser

background, 112 “113

collision detection, 118 “123

files, 110 “115

idea, 109 “110

implementing, 116 “126

libraries, 110 “115

listing, 127 “128

mouse pointer, 113

moving objects, 117 “118

resetting, 120 “121

scoreboard, 114 “115, 120 “121

scripts, 115 “116

testing, 126 “127

Pachinko

collision response, 647 “649

designing, 625 “626, 634 “635

files, 617 “625

idea, 616 “617

implementing, 626 “649

layers , 617 “625

libraries, 617 “625

listing, 650 “656

physics, 634 “649

testing, 649 “656

troubleshooting, 656

scoreboards

Blow 'Em Up , 455 “456

Critter Attack , 336

designing, 681 “690

implementing, 681 “690

Mouse Chaser , 114 “115, 120 “121

Perl scripts, 685 “690

profanity, 690

security, 689 “690

Shoot 'Em Up , 388, 406

Sliders , 232 “233, 237

Shoot 'Em Up

background, 385 “386

clock, 406

crosshairs, 390, 405 “406

designing, 391 “395

files, 381 “391

foreground, 385 “386

frame counters, 388 “390

idea, 379 “381

implementing, 395 “414

initializing, 396 “399

instructions, 386 “387, 399 “402

libraries, 381 “391

listing, 418 “424

moving objects, 406 “411

nesting conditional statements, 409

scoreboard, 388, 406

scripts, 385

sound, 414 “417

sound manager, 415 “416

starting, 402 “405

state machines, 399 “405

testing, 417 “418

timelines , 385

Sliders

buttons, 231 “232, 237 “240

conditional statements, 242

files, 230 “233

idea, 229 “230

implementing, 233 “244

libraries, 230 “233

listing, 245 “248

scoreboard, 232 “233, 237

testing, 236, 239 “244

tiles, 230 “231, 234 “236, 240 “243

Tic Tac Toe

AI, 559 “572

alpha/beta cutoff, 572

designing, 546 “548

ending, 555 “556

files, 545 “546

idea, 545

implementing, 548 “572

initializing, 546, 548 “549

libraries, 545 “546

listing, 573 “578

minimax searching, 562 “573

moving, 547 “548, 556 “558, 560 “572

number of players, 551 “552

recursion functions, 562 “573

skill levels, 551, 559

starting, 546 “547, 550 “553

testing, 560, 572 “573

tree pruning, 571 “572

trees, 562 “563, 568, 570 “572

tracking, 690

trees

minimax searches, 544

overview, 542 “544

turn -based, 534, 544

get function, 528 “529

getAscii function, 286 “287

getBounds function, 315 “317

getBytesLoaded function, 332

getBytesTotal function, 332

getCode function, 287

getDepth function, 320

getInstanceAtDepth function, 320

getNextHighestDepth function, 320

getPan function, 331

getRGB function, 299 “303

getTimer function, 224 “226, 373

getTransform function, 303 “304, 331

getURL function, 320, 674 “676

getVolume function, 330 “331

global functions, 84

global objects, 253, 256

globalToLocal function, 318 “319

go, 544

gotoAndPlay function, 160

gotoAndStop function, 161

groups, objects, 255 “256

Категории