STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/76665527?noj=FRM76665527-22DC" width="1" height="1"></div>

pong02.swf

This is the info page for
Flash #148806

(Click the ID number above for more basic data on this flash file.)


Text
A TRIBUTE TO THE ORIGINAL ATARI PONG
FROM //shift-refresh consulting

pong

1  player
2 player
demo mode
HIGH SCORES

ONE PLAYER
INSTRUCTIONS
CHOOSE YOUR CONTROL TYPE:
MOUSE
KEYBOARD

ONE PLAYER
INSTRUCTIONS
CONTROL THE PADDLE ON THE RIGHT HAND
SIDE OF THE SCREEN USING YOUR MOUSE.
THE PADDLE CAN BE MOVED UP AND DOWN.
POINTS ARE SCORED WHEN your OPPONENT
MISSES THE BALL. FIRST PLAYER TO REACH
10 POINTS WINS THE GAME.
CONTINUE >>

ONE PLAYER
INSTRUCTIONS
CONTROL THE PADDLE ON THE RIGHT HAND
SIDE OF THE SCREEN USING YOUR keyboard.
USE "K" TO MOVE THE PADDLE UP AND "M"
TO MOVE THE PADDLE DOWN.
POINTS ARE SCORED WHEN your OPPONENT
MISSES THE BALL. FIRST PLAYER TO REACH 10
POINTS WINS THE GAME.
CONTINUE >>

ONE PLAYER
INSTRUCTIONS
INPUT TYPE:
CHOOSE YOUR DIFFICULTY LEVEL:
BEGINNER
INTERMEDIATE
EXPERT
gOOD LUCK!

two PLAYER
INSTRUCTIONS
player 1 controls the left hand paddle
using the "a" (up) and "Z" (down) Keys
player 2 controls the right hand
paddle using the "k" (up) and "m" (down)
keys
first player to 10 points wins the game.
press spacebar to play!

WIN

Play again
(spacebar)
reset

SUBMIT SCORE

quit demo mode

pong

Name                  CTRL         score

Expert | Intermediate | Beginner | MAIN

SUBMIT YOUR HIGH SCORE!
ENTER YOUR NAME:
(MAX 5 CHARACTERS)

submit

CANCEL

ActionScript [AS1/AS2]

Frame 1
_quality = "Low"; fscommand ("fullscreen", true); mouse.show(); !botSnd; !p1Snd; !p2Snd; !misSnd; if (!winSnd) { botSnd = new Sound(); botSnd.attachSound("botSnd"); p1Snd = new Sound(); p1Snd.attachSound("p1Snd"); p2Snd = new Sound(); p2Snd.attachSound("p2Snd"); misSnd = new Sound(); misSnd.attachSound("misSnd"); winSnd = new Sound(); winSnd.attachSound("winSnd"); } stop();
Instance of Symbol 20 MovieClip "demoTimer" in Frame 1
onClipEvent (load) { this.currTime = getTimer(); this.replayTime = this.currTime + 10000; } onClipEvent (enterFrame) { this.currTime = getTimer(); if (this.currTime >= this.replayTime) { _root.input = 0; _root.play(); } }
Frame 2
if (_root.input == 1) { _root.instructions.gotoAndStop(1); } else if (_root.input == 2) { _root.instructions.gotoAndStop(5); } else { _root.ai = 3.5; _root.nextFrame(); } stop();
Instance of Symbol 37 MovieClip "instructions" in Frame 2
onClipEvent (enterFrame) { if ((this._currentframe == 2) && (_root.input == 2)) { if (Key.isDown(32)) { _root.nextFrame(); } } }
Frame 3
function timeout() { now = getTimer(); then = now + 2000; while (now < then) { now = now + getTimer(); } } function playAgain() { _root.ball._x = 200; _root.ball._y = 150; _root.xspd = -5; _root.yspd = Math.floor(Math.floor(Math.random() * 10)) - 5; _root.ball.timer = 0; _root.ball.timeout = 0; _root.ball.miss = 0; _root.computer = 0; _root.player = 0; _root.win._visible = 0; _root.win.gotoAndStop(1); if (_root.input != 0) { mouse.hide(); } } if (input == 0) { _root.quitDemo._visible = 1; } else { mouse.hide(); } top = 10; bot = 290; rgt = 385; lft = 15; xspd = 6; yspd = 0; computer = 0; player = 0; _root.ball.hit = 0; _root.ball.timer = 0; _root.ball.timeout = 0; _root.ball.miss = 0; stop();
Instance of Symbol 39 MovieClip "pad1" in Frame 3
onClipEvent (enterFrame) { if (_root.input == 2) { if (Key.isDown(65)) { if (this._y > 0) { this._y = this._y - 5; } else { this._y = 0; } } else if (Key.isDown(90)) { if (this._y < 250) { this._y = this._y + 5; } else { this._y = 250; } } } else if ((_root.input == 0) || (_root.input == 1)) { if ((this._y >= 0) && (this._y <= 250)) { this._y = this._y - ((this._y - (_root.ball._y - 25)) / (_root.ai + this.screwy)); } if (this._y < 0) { this._y = 0; } else if (this._y > 250) { this._y = 250; } } }
Instance of Symbol 39 MovieClip "pad2" in Frame 3
onClipEvent (enterFrame) { if (_root.input == 1) { if (_root.inputType == 0) { this._y = _root._ymouse; if (this._y > 250) { this._y = 250; } else if (this._y < 0) { this._y = 0; } } else if (_root.inputType == 1) { if (Key.isDown(75)) { if (this._y > 0) { this._y = this._y - 5; } else { this._y = 0; } } else if (Key.isDown(77)) { if (this._y < 250) { this._y = this._y + 5; } else { this._y = 250; } } } } else if (_root.input == 2) { if (Key.isDown(75)) { if (this._y > 0) { this._y = this._y - 5; } else { this._y = 0; } } else if (Key.isDown(77)) { if (this._y < 250) { this._y = this._y + 5; } else { this._y = 250; } } } else if (_root.input == 0) { if ((this._y >= 0) && (this._y <= 250)) { this._y = this._y - ((this._y - (_root.ball._y - 25)) / (_root.ai + this.screwy)); } if (this._y < 0) { this._y = 0; } else if (this._y > 250) { this._y = 250; } } }
Instance of Symbol 40 MovieClip "ball" in Frame 3
onClipEvent (load) { this.timer = 0; this.timeout = 0; this.flatliner = 0; this.miss = 0; } onClipEvent (enterFrame) { if ((_root.yspd == 0) && (this.flatliner == 0)) { this.flatliner = 1; } if (this._x >= _root.rgt) { this.miss = 1; if (this.timeout == 0) { _root.misSnd.start(); this.timeout = getTimer() + 500; } else if (this.timer <= this.timeout) { this.timer = getTimer(); } else if (this.timer > this.timeout) { if (_root.computer < 9) { _root.computer++; this._x = 200; this._y = Math.floor(Math.random() * 100) + 50; _root.xspd = -6; _root.yspd = 3; this.timer = 0; this.timeout = 0; this.miss = 0; } else { _root.computer = 10; mouse.show(); _root.win._y = 100; _root.win._x = 54; if ((_root.input == 1) || (_root.input == 2)) { _root.win.gotoAndStop(1); } else { _root.win.gotoAndStop(2); } _root.win._visible = 1; this._x = 450; this._y = 200; } } } if (this._x <= _root.lft) { this.miss = 1; if (this.timeout == 0) { _root.winSnd.start(); this.timeout = getTimer() + 500; } else if (this.timer <= this.timeout) { this.timer = getTimer(); } else if (this.timer > this.timeout) { if (_root.player < 9) { this._x = 200; this._y = Math.floor(Math.random() * 100) + 50; _root.xspd = 6; _root.yspd = 3; _root.player++; this.timer = 0; this.timeout = 0; this.miss = 0; } else { _root.player = 10; mouse.show(); _root.win._y = 100; _root.win._x = 214; if ((_root.input == 1) || (_root.input == 2)) { _root.win.gotoAndStop(1); } else { _root.win.gotoAndStop(2); } _root.win._visible = 1; this._x = -50; this._y = 200; } } } if (this._y < _root.top) { _root.p2Snd.start(); _root.yspd = -_root.yspd; this._y = this._y + 2; } if (this._y > _root.bot) { _root.p2Snd.start(); _root.yspd = -_root.yspd; this._y = this._y - 2; } if (_root.pad1.hitTest(_root.ball) && (this.miss == 0)) { _root.p1Snd.start(); hit = "_root.pad1._y"; this._x = this._x + 2; if ((_root.input == 1) || (_root.input == 0)) { _root.pad1.screwy = Math.floor(Math.random() * 6) + 1; } } else if (_root.pad2.hitTest(_root.ball) && (this.miss == 0)) { _root.p1Snd.start(); hit = "_root.pad2._y"; this._x = this._x - 2; if (_root.input == 0) { _root.pad2.screwy = Math.floor(Math.random() * 6) + 1; } } else { hit = 0; } if (hit != 0) { _root.yspd = (Math.floor(_root.ball._y) - (Math.floor(eval (hit)) + 25)) / 5; if (this.flatliner == 1) { if (input != 0) { _root.yspd = -1; } else { _root.yspd = Math.floor(Math.random() * 6) - 3; } this.flatliner = 0; } _root.xspd = -_root.xspd; } this._x = this._x + _root.xspd; this._y = this._y + _root.yspd; }
Instance of Symbol 51 MovieClip "win" in Frame 3
onClipEvent (load) { this._visible = 0; this.replayTime = 0; this.currTime = 0; } onClipEvent (enterFrame) { if ((this._visible == 1) && (this._currentframe == 2)) { if (this.replayTime == 0) { this.currTime = getTimer(); this.replayTime = this.currTime + 5000; } else if (this.currTime < this.replayTime) { this.currTime = getTimer(); } else if (this.currTime >= this.replayTime) { _root.gotoAndStop(1); } } else if ((((this._visible == 1) && (_root.player == 10)) && (this._currentframe == 1)) && (_root.input == 1)) { this.winSubmit._visible = 1; } }
Instance of Symbol 53 MovieClip in Frame 3
onClipEvent (load) { if (_root.input == 0) { this._visible = 1; } else { this._visible = 0; } }
Frame 4
function getHiScores(level) { if (level == 2) { _root.scores = _root.dataBoy.exp_scores; _root.title = "EXPERT HIGH SCORES"; } else if (level == 4) { _root.scores = _root.dataBoy.int_scores; _root.title = "INTERMEDIATE HIGH SCORES"; } else if (level == 6) { _root.scores = _root.dataBoy.beg_scores; _root.title = "BEGINNER HIGH SCORES"; } } _root.scores = ""; stop();
Instance of Symbol 20 MovieClip "dataBoy" in Frame 4
onClipEvent (load) { readySend = 1; } onClipEvent (enterFrame) { if (readySend) { readySend = 0; randomCrap = Math.floor(Math.random() * 65000) + 1; _root.scores = "Getting data..."; this.loadVariables("http://www.stevelange.net/pong/scores.php?getScores=1&noCache=" + randomCrap, "POST"); } } onClipEvent (data) { if (this.scoresReceived != 1) { readySend = 1; } _root.getHiScores(2); }
Frame 5
function submitScore(name) { if ((name = "")) { name = "-----"; } if (_root.inputType == 0) { _root.inputType = "mou"; } else if (_root.inputType == 1) { _root.inputType = "key"; } loadVariables ((((((("http://www.stevelange.net/pong/submit.php?level=" + _root.ai) + "&name=") + _root.name) + "&computer=") + _root.computer) + "&inputType=") + _root.controlType, "_root", "POST"); _root.reply = "SENDING"; _root.submitButton._visible = 0; } _root.name = "-----"; _root.reply = ""; stop();
Symbol 15 Button
on (release) { _root.input = 1; _root.play(); }
Symbol 16 Button
on (release) { _root.input = 2; _root.play(); }
Symbol 17 Button
on (release) { _root.input = 0; _root.play(); }
Symbol 18 Button
on (release) { getURL ("http://www.shift-refresh.com"); }
Symbol 19 Button
on (release) { _root.gotoAndStop(4); }
Symbol 24 Button
on (release) { _root.inputType = 0; this.gotoAndStop(2); }
Symbol 25 Button
on (release) { _root.inputType = 1; this.gotoAndStop(3); }
Symbol 27 Button
on (release) { this.gotoAndStop(4); }
Symbol 32 Button
on (release) { _root.ai = 6; _root.nextFrame(); }
Symbol 33 Button
on (release) { _root.ai = 4; _root.nextFrame(); }
Symbol 34 Button
on (release) { _root.ai = 2; _root.nextFrame(); }
Symbol 36 Button
on (release, keyPress "<Space>") { _root.nextFrame(); }
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 2
if (_root.inputType == 0) { this.showInputType = "MOUSE"; } else if (_root.inputType == 1) { this.showInputType = "KEYBOARD"; } stop();
Symbol 37 MovieClip Frame 3
if (_root.inputType == 0) { this.showInputType = "MOUSE"; } else if (_root.inputType == 1) { this.showInputType = "KEYBOARD"; } stop();
Symbol 37 MovieClip Frame 4
stop();
Symbol 37 MovieClip Frame 5
stop();
Symbol 47 Button
on (release) { _root.gotoAndStop(5); }
Symbol 49 Button
on (release, keyPress "<Space>") { _root.playAgain(); }
Symbol 50 Button
on (release) { _root.gotoAndStop(1); }
Symbol 51 MovieClip Frame 1
stop();
Instance of Symbol 48 MovieClip "winSubmit" in Symbol 51 MovieClip Frame 1
onClipEvent (load) { this._visible = 0; }
Symbol 51 MovieClip Frame 2
stop();
Symbol 60 Button
on (release) { _root.getHiScores(6); }
Symbol 61 Button
on (release) { _root.getHiScores(2); }
Symbol 62 Button
on (release) { _root.getHiScores(4); }
Symbol 69 Button
on (release) { _root.submitScore(_root.name); }
Symbol 71 Button
on (release) { _root.gotoAndStop(1); }

Library Items

Symbol 1 Sound [topSnd]
Symbol 2 Sound [pong]
Symbol 3 Sound [misSnd]
Symbol 4 Sound [p2Snd]
Symbol 5 Sound [p1Snd]
Symbol 6 Sound [botSnd]
Symbol 7 Sound [winSnd]
Symbol 8 GraphicUsed by:Timeline
Symbol 9 FontUsed by:10 22 26 28 29 30 35 45 46 52 56 57 58 59 64 65 66
Symbol 10 TextUses:9Used by:Timeline
Symbol 11 FontUsed by:12 13 41 42 44 55 68 70
Symbol 12 TextUses:11Used by:Timeline
Symbol 13 TextUses:11Used by:Timeline
Symbol 14 GraphicUsed by:15 16 17 18 19 24 25 27 32 33 34 36 37 39 40 47 48 49 50 53 60 61 62
Symbol 15 ButtonUses:14Used by:Timeline
Symbol 16 ButtonUses:14Used by:Timeline
Symbol 17 ButtonUses:14Used by:Timeline
Symbol 18 ButtonUses:14Used by:Timeline
Symbol 19 ButtonUses:14Used by:Timeline
Symbol 20 MovieClipUsed by:Timeline
Symbol 21 GraphicUsed by:Timeline
Symbol 22 TextUses:9Used by:37
Symbol 23 GraphicUsed by:37
Symbol 24 ButtonUses:14Used by:37
Symbol 25 ButtonUses:14Used by:37
Symbol 26 TextUses:9Used by:37
Symbol 27 ButtonUses:14Used by:37
Symbol 28 TextUses:9Used by:37
Symbol 29 TextUses:9Used by:37
Symbol 30 EditableTextUses:9Used by:37
Symbol 31 GraphicUsed by:37
Symbol 32 ButtonUses:14Used by:37
Symbol 33 ButtonUses:14Used by:37
Symbol 34 ButtonUses:14Used by:37
Symbol 35 TextUses:9Used by:37
Symbol 36 ButtonUses:14Used by:37
Symbol 37 MovieClipUses:22 23 24 25 26 14 27 28 29 30 31 32 33 34 35 36Used by:Timeline
Symbol 38 GraphicUsed by:Timeline
Symbol 39 MovieClipUses:14Used by:Timeline
Symbol 40 MovieClipUses:14Used by:Timeline
Symbol 41 EditableTextUses:11Used by:Timeline
Symbol 42 EditableTextUses:11Used by:Timeline
Symbol 43 GraphicUsed by:51
Symbol 44 TextUses:11Used by:51
Symbol 45 TextUses:9Used by:51
Symbol 46 TextUses:9Used by:48
Symbol 47 ButtonUses:14Used by:48
Symbol 48 MovieClipUses:14 46 47Used by:51
Symbol 49 ButtonUses:14Used by:51
Symbol 50 ButtonUses:14Used by:51 53  Timeline
Symbol 51 MovieClipUses:43 44 45 48 49 50Used by:Timeline
Symbol 52 TextUses:9Used by:53
Symbol 53 MovieClipUses:14 52 50Used by:Timeline
Symbol 54 GraphicUsed by:Timeline
Symbol 55 TextUses:11Used by:Timeline
Symbol 56 EditableTextUses:9Used by:Timeline
Symbol 57 EditableTextUses:9Used by:Timeline
Symbol 58 TextUses:9Used by:Timeline
Symbol 59 TextUses:9Used by:Timeline
Symbol 60 ButtonUses:14Used by:Timeline
Symbol 61 ButtonUses:14Used by:Timeline
Symbol 62 ButtonUses:14Used by:Timeline
Symbol 63 GraphicUsed by:Timeline
Symbol 64 EditableTextUses:9Used by:Timeline
Symbol 65 EditableTextUses:9Used by:Timeline
Symbol 66 TextUses:9Used by:Timeline
Symbol 67 GraphicUsed by:69 71
Symbol 68 TextUses:11Used by:69
Symbol 69 ButtonUses:67 68Used by:72
Symbol 70 TextUses:11Used by:71
Symbol 71 ButtonUses:67 70Used by:72
Symbol 72 MovieClipUses:69 71Used by:Timeline

Instance Names

"demoTimer"Frame 1Symbol 20 MovieClip
"instructions"Frame 2Symbol 37 MovieClip
"pad1"Frame 3Symbol 39 MovieClip
"pad2"Frame 3Symbol 39 MovieClip
"ball"Frame 3Symbol 40 MovieClip
"win"Frame 3Symbol 51 MovieClip
"dataBoy"Frame 4Symbol 20 MovieClip
"submitButton"Frame 5Symbol 72 MovieClip
"winSubmit"Symbol 51 MovieClip Frame 1Symbol 48 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "topSnd"
ExportAssets (56)Timeline Frame 1Symbol 2 as "pong"
ExportAssets (56)Timeline Frame 1Symbol 3 as "misSnd"
ExportAssets (56)Timeline Frame 1Symbol 4 as "p2Snd"
ExportAssets (56)Timeline Frame 1Symbol 5 as "p1Snd"
ExportAssets (56)Timeline Frame 1Symbol 6 as "botSnd"
ExportAssets (56)Timeline Frame 1Symbol 7 as "winSnd"

Dynamic Text Variables

showInputTypeSymbol 30 EditableText""
_root.computerSymbol 41 EditableText""
_root.playerSymbol 42 EditableText""
titleSymbol 56 EditableText""
scoresSymbol 57 EditableText""
replySymbol 64 EditableText""
nameSymbol 65 EditableText""




http://swfchan.com/30/148806/info.shtml
Created: 26/10 -2018 03:54:32 Last modified: 26/10 -2018 03:54:32 Server time: 22/12 -2024 21:23:49