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

P “Q

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 “650, 656

troubleshooting, 656

packages, classes, 529 “530

panels. See also windows

Actions

color , 48

ActionScript, 28 “30

closing, 5

collapsing, 5

layouts, 5

moving, 4 “5

opening, 5

Output

logical errors, 35

testing movies, 35 “37

Properties, 13 “15

sets, 5

timeline

frames , 17

keyframes, 18

layers, 18 “20

overview, 17

playhead, 17

Tools panel, 7 “9

Transform, 15 “16

parent reference variable, 104 “106

parent/child relationships

classes, 513 “519, 526 “527

clips, 104 “106, 139

objects, 104 “106

parentheses (), logical operator precedence, 76

pausing ( Match 'Em Up ), 223 “226

performance

recursion functions, 540 “541

timing, 428 “430

troubleshooting, 101

arrays, 196

trigonometry, 436

period (.), dot operator, 96

Perl

interpreters, 688

programming servers, 680 “681

scripts

naming, 682 “683

scoreboards, 685 “690

Web sites, 688

PHP

programming servers, 679

Web sites, 720

physics

acceleration, 591

collision response, 602 “612

angular velocity, 614 “615

circle to circle, 610 “612

circle to point, 602 “609

optimizing, 612

short-circuiting , 612

skipping, 613 “614

spin, 614 “615

velocity, 613 “614

force, 592

friction, 595 “596

Havok, 615

heat, 595

inertia, 592

Macromedia Director, 615

marbles

designing, 597

files, 597

idea, 596

implementing, 597 “601

initializing, 597 “598

libraries, 597

testing, 601 “602

mass, 591

moving objects, 594 “595

Newton's first law, 592

Newton's second law, 593 “594

Newton's third law, 594

object speed, 583

Pachinko , 634 “649

rigid body dynamics, 590 “591

vectors

adding, 584 “585

components , 583 “584

component-wise multiplication, 588

dot product multiplication, 588 “590

initial points, 584

magnitude, 583

normalizing, 586 “587

overview, 582 “584

scalar multiplication, 585 “586

scaling, 587 “588

subtracting, 584 “585

terminal points, 584

velocity, 591

Web sites, 721

pinball . See Pachinko

platforms, 263

Play command (Control menu), 23

play function, 160

players, numbers ( Tic Tac Toe ), 551 “552

playhead, timelines , 17

playing movies, 160

pointers, mouse

Mouse Chaser , 113

position, 107 “108

points

distance formula, 432 “437

initial (vectors), 584

terminal (vectors), 584

pop function, 193 “194

position

mouse pointer, 107 “108

objects

clips, 97 “99

stage, 107 “108

post-decrement operators, 44 “45

post-increment operators, 44

powers, recursion functions, 537 “540

powerups ( Blow 'Em Up ), 454 “455, 461, 488 “491

precedence, operators, 40 “43

() parentheses, 76

logical, 75 “76

pre-decrement operators, 44 “45

pre-increment operators, 44

preloaders , loading servers, 663 “668

prevFrame function, 162

previewing movies, 23 “24

primitives, variables , 52

private functions, properties, 523 “525

profanity, scoreboards, 690

programming

by contract, 525

OOP. See OOP

real-time. See timelines

scripts. See scripts

servers, 678

ASP, 679

CGI, 679 “690

chat rooms, 690

embedded languages, 679 “680

JSP, 679

Perl, 680 “681

PHP, 679

Python, 680

tracking, 690

properties

addListener, 295 “296

align, 296 “298

alpha, 97

arrays, 186 “187, 195

clips, 139

Color object, 303

currentframe, 162 “163

editing

hyperlinks , 15

images, 13 “15

instances, 13 “15

library, 14

movies, 15

stage, 13 “15

text, 15

height, 100

Math object, 258

MovieClip object, 306 “311

naming, 308

Number object, 263 “265

OOP

classes, 507 “508, 514, 527 “529

data types, 521 “522

private, 523 “525

public, 523 “525

overview, 96 “97

removeListener, 295 “296

rotation, 101

scaleMode, 291 “295

Sound object, 330

Stage object, 291 “298

stageHeight, 295

stageWidth, 295

static, 527 “528

totalframes , 163

underscore , 308

variables, 96

visible, 100 “101

width, 100

x, 97 “99

xmouse , 107

xscale, 100

y, 97 “99

ymouse, 107

yscale, 100

Properties panel, 13 “15

pruning

alpha beta, 721

trees, 571 “572

public functions, properties, 523 “525

Publish Preview command (File menu), 24

Publish Settings command (File menu), 24

publishing movies, 23 “24

push function, 194 “195

Pythagorean Theorem, 432 “437

Python, 680

Категории