home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
600 Games
/
600games.iso
/
Classicos
/
pepsi_pinball.swf
/
scripts
/
DefineSprite_197
/
frame_5
/
DoAction.as
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2006-05-18
|
217 b
|
10 lines
incX = (endPos.x - startPos.x) / 20;
incY = (endPos.y - startPos.y) / 20;
ball._x += incX;
ball._y += incY;
delta = Math.abs(endPos.x - ball._x) + Math.abs(endPos.y - ball._y);
if(delta < 10)
{
start();
}