Macromedia Flash MX Game Design Demystified phần 2 pdf

Macromedia Flash MX Game Design Demystified phần 2 pdf

Macromedia Flash MX Game Design Demystified phần 2 pdf

... i<totalBalloons; ++i) { 20 20 20 20 var name = "balloon"+i; 21 21 21 21 if (_root[name].hitTest (mx, my)) { 22 22 22 22 _root[name].play(); 23 23 23 23 } 24 24 24 24 } 25 25 25 25 }; The second ... circle2 = {}; 11 1111 11 circle2.clip = circle_clip2; 12 121 2 12 circle2.x = circle2.clip._x; 13 1313 13 circle2.y = circle2.clip._y; 14 1414 14 circle2.ra...
Ngày tải lên : 12/08/2014, 21:20
38 388 0
Macromedia Flash MX Game Design Demystified phần 7 pdf

Macromedia Flash MX Game Design Demystified phần 7 pdf

... 17 1717 17 } 18 1818 18 path[clipName].letter.text = tempLetter; 19 1919 19 } 20 20 20 20 } 21 21 21 21 } In line 2 we create a reference to the board movie clip called path . The board instance ... happen to get this game going. The following ten lines ActionScript, at the bottom of the Game frame, are not contained within a function. 1 11 1 scrambleWords(); 2 22 2 if...
Ngày tải lên : 12/08/2014, 21:20
38 271 0
Macromedia Flash MX Game Design Demystified phần 1 pps

Macromedia Flash MX Game Design Demystified phần 1 pps

... Examples Macromedia Flash MX Game Design Demystified: The Official Guide to Creatin g Games with Flash By Jobe Makar Publisher : Peachpit Press Pub Date : September 09, 20 02 ISBN : 0 -20 1-77 021 -0 Pages ... Examples Macromedia Flash MX Game Design Demystified: The Official Guide to Creating Games with Flash By Jobe Makar Publisher : Peachpit Press Pub Date :...
Ngày tải lên : 12/08/2014, 21:20
38 235 0
Macromedia Flash MX Game Design Demystified phần 3 pot

Macromedia Flash MX Game Design Demystified phần 3 pot

... radius1+radius2 a = -2* xmov1*xmov2+xmov1 2 +xmov2 2 b = -2* xl1*xmov2 -2* xl2*xmov1 +2* xl1*xmov1 +2* xl2*xmov2 c = -2* xl1*xl2+xl1 2 +xl2 2 d = -2* ymov1*ymov2+ymov1 2 +ymov2 2 e = -2* yl1*ymov2 -2* yl2*ymov1 +2* yl1*ymov1 +2* yl2*ymov2 ... yVel2*cosTheta-xVel2*sinTheta; 21 21 21 21 // Conservation Equations 22 22 22 22 var P = (mass1*xVel1prime+mass2*xVel2prime); 2...
Ngày tải lên : 12/08/2014, 21:20
38 250 0
Macromedia Flash MX Game Design Demystified phần 4 pptx

Macromedia Flash MX Game Design Demystified phần 4 pptx

... iso.mapToScreen(x, y, z); 18 1818 18 clip._x = temp[0]; 19 1919 19 clip._y = temp[1]; 20 20 20 20 } 21 21 21 21 } 22 22 22 22 } There is an object in the timeline called world (which we'll see ... initializeBall() { 2 22 2 game. speed = 3; 3 33 3 game. path.ball.swapDepths(10000); 4 44 4 game. ball = {startx:1, starty:1, clip :game. path.ball}; 5 55 5 var x = (gam...
Ngày tải lên : 12/08/2014, 21:20
38 259 0
Macromedia Flash MX Game Design Demystified phần 5 ppsx

Macromedia Flash MX Game Design Demystified phần 5 ppsx

... newy ) 20 20 20 20 m.f = m.g + m.h 21 21 21 21 m.parent = n 22 22 22 22 add it to the open array 23 23 23 23 sort the open array 24 24 24 24 else 25 25 25 25 if newg < m.g 26 26 26 26 m.parent ... "east", x, y]); 23 23 23 23 } 24 24 24 24 } 25 25 25 25 if (cell.y-1>0) { 26 26 26 26 //north cell 27 27 27 27 var x = cell.x; 28 28 28 28 var...
Ngày tải lên : 12/08/2014, 21:20
38 198 0
Macromedia Flash MX Game Design Demystified phần 6 potx

Macromedia Flash MX Game Design Demystified phần 6 potx

... 20 20 20 20 } else { 21 21 21 21 var start = (decel.duration- accel.position)/1000; 22 22 22 22 } 23 23 23 23 accel.stop(); 24 24 24 24 hi_loop.stop(); 25 25 25 25 playDecel(start); 26 26 26 26 ... 18 1818 18 function decelDone() { 19 1919 19 decel.stop(); 20 20 20 20 low_loop.setVolume(vol); 21 21 21 21 low_loop.start(0, 100000); 22 22 22 22 } The first f...
Ngày tải lên : 12/08/2014, 21:20
38 295 0
Macromedia Flash MX Game Design Demystified phần 8 pptx

Macromedia Flash MX Game Design Demystified phần 8 pptx

... piece3 _2. letter == piece3_3.letter) { 20 20 20 20 var letter = piece3_1.letter; 21 21 21 21 } 22 22 22 22 if (piece1_1.letter == piece2 _2. letter && piece2 _2. letter == piece3_3.letter) { 23 23 23 23 ... l.x1; 24 24 24 24 var y = l.y1+diagLength*sinAng*.6; 25 25 25 25 l = createLine(x, y, 26 9, diagLength*sinAng*.6, 1); 26 26 26 26 //left triangle, bottom...
Ngày tải lên : 12/08/2014, 21:20
38 236 0
Macromedia Flash MX Game Design Demystified phần 9 ppsx

Macromedia Flash MX Game Design Demystified phần 9 ppsx

... popup.gotoAndStop(" ;game started"); 19 1919 19 if (game. myTurn) { 20 20 20 20 popup.msg.text = "The game has begun. It is your turn."; 21 21 21 21 } else { 22 22 22 22 popup.msg.text ... ("ÈŒüm_P")[W][0]; 22 22 22 22 eval ("_§") = eval ("ÈŒüm_P")[W] [2] ; 23 23 23 23 eval ("_m") = (-eval ("ÈŒüm_P")[...
Ngày tải lên : 12/08/2014, 21:20
38 268 0
Macromedia Flash MX Game Design Demystified phần 10 pot

Macromedia Flash MX Game Design Demystified phần 10 pot

... used Flash Player 6; the version that supports and correctly interprets them is Player 6. ElectroServer works with Flash 5 and with Flash MX. However, the object works only with Flash MX, because ... If there are, then it is time to initialize the game (assuming it is a two-player game) . function numPlayers(num) { if (num == 2) { startGame(); } } ElectroServerAS.on...
Ngày tải lên : 12/08/2014, 21:20
35 259 0