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

B

backgammon, 534, 544

background

Critter Attack , 353 “354

Mouse Chaser , 112 “113

Shoot 'Em Up , 385 “386

base cases, recursion functions, 539 “540

base systems, color , 301

beginFill function, 325 “326

beginGradientFill function, 326 “327

binary trees, 542

binding objects, keyboard, 704 “708

bitwise operators, 47

blocking functions, 672

blocks, code. See code blocks

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

blurry text, 13

board games , multidimensional arrays, 208

boolean function, 279

Boolean object, 261 “263

toString function, 262

valueOf function, 262 “263

booleans

boolean function, 279

Boolean object, 261 “263

toString function, 262

valueOf function, 262 “263

operators, 52 “54

variables , 51 “52

converting, 70 “73

bounding boxes, 315

break statements, 61 “62

browsers

communicating, 674 “676

window size , 676 “678

built-in functions

arguments, 84 “86

objects, 82 “84

overview, 82 “84

return values, 86

bullets ( Blow 'Em Up ), 473 “476

Button Menu. See also buttons

buttons

creating, 167 “168

event handlers, 169 “170, 173 “178

functionality, 170 “171

initializing, 168

moving, 168 “169

scaling, 168 “169

state, 171 “178

text, 171 “173

designing, 164 “166

files, 165 “166

functionality, 178 “179

idea, 164

implementing, 167 “179

libraries, 165 “166

listing, 179 “181

symbols, 165

text, 166

Button object, 299

buttons. See also button menu

button object, 299

disabling, timelines , 310

event handlers, 149 “157

button menu, 169 “170, 173 “178

labels, 151

naming, 151

states, 150 “153

hit areas, 156 “157

Sliders , 231 “232, 237 “240

Категории