STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #148806 |
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 1onClipEvent (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 2if (_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 2onClipEvent (enterFrame) { if ((this._currentframe == 2) && (_root.input == 2)) { if (Key.isDown(32)) { _root.nextFrame(); } } }Frame 3function 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 3onClipEvent (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 3onClipEvent (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 3onClipEvent (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 3onClipEvent (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 3onClipEvent (load) { if (_root.input == 0) { this._visible = 1; } else { this._visible = 0; } }Frame 4function 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 4onClipEvent (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 5function 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 Buttonon (release) { _root.input = 1; _root.play(); }Symbol 16 Buttonon (release) { _root.input = 2; _root.play(); }Symbol 17 Buttonon (release) { _root.input = 0; _root.play(); }Symbol 18 Buttonon (release) { getURL ("http://www.shift-refresh.com"); }Symbol 19 Buttonon (release) { _root.gotoAndStop(4); }Symbol 24 Buttonon (release) { _root.inputType = 0; this.gotoAndStop(2); }Symbol 25 Buttonon (release) { _root.inputType = 1; this.gotoAndStop(3); }Symbol 27 Buttonon (release) { this.gotoAndStop(4); }Symbol 32 Buttonon (release) { _root.ai = 6; _root.nextFrame(); }Symbol 33 Buttonon (release) { _root.ai = 4; _root.nextFrame(); }Symbol 34 Buttonon (release) { _root.ai = 2; _root.nextFrame(); }Symbol 36 Buttonon (release, keyPress "<Space>") { _root.nextFrame(); }Symbol 37 MovieClip Frame 1stop();Symbol 37 MovieClip Frame 2if (_root.inputType == 0) { this.showInputType = "MOUSE"; } else if (_root.inputType == 1) { this.showInputType = "KEYBOARD"; } stop();Symbol 37 MovieClip Frame 3if (_root.inputType == 0) { this.showInputType = "MOUSE"; } else if (_root.inputType == 1) { this.showInputType = "KEYBOARD"; } stop();Symbol 37 MovieClip Frame 4stop();Symbol 37 MovieClip Frame 5stop();Symbol 47 Buttonon (release) { _root.gotoAndStop(5); }Symbol 49 Buttonon (release, keyPress "<Space>") { _root.playAgain(); }Symbol 50 Buttonon (release) { _root.gotoAndStop(1); }Symbol 51 MovieClip Frame 1stop();Instance of Symbol 48 MovieClip "winSubmit" in Symbol 51 MovieClip Frame 1onClipEvent (load) { this._visible = 0; }Symbol 51 MovieClip Frame 2stop();Symbol 60 Buttonon (release) { _root.getHiScores(6); }Symbol 61 Buttonon (release) { _root.getHiScores(2); }Symbol 62 Buttonon (release) { _root.getHiScores(4); }Symbol 69 Buttonon (release) { _root.submitScore(_root.name); }Symbol 71 Buttonon (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 Graphic | Used by:Timeline | |
Symbol 9 Font | Used by:10 22 26 28 29 30 35 45 46 52 56 57 58 59 64 65 66 | |
Symbol 10 Text | Uses:9 | Used by:Timeline |
Symbol 11 Font | Used by:12 13 41 42 44 55 68 70 | |
Symbol 12 Text | Uses:11 | Used by:Timeline |
Symbol 13 Text | Uses:11 | Used by:Timeline |
Symbol 14 Graphic | Used 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 Button | Uses:14 | Used by:Timeline |
Symbol 16 Button | Uses:14 | Used by:Timeline |
Symbol 17 Button | Uses:14 | Used by:Timeline |
Symbol 18 Button | Uses:14 | Used by:Timeline |
Symbol 19 Button | Uses:14 | Used by:Timeline |
Symbol 20 MovieClip | Used by:Timeline | |
Symbol 21 Graphic | Used by:Timeline | |
Symbol 22 Text | Uses:9 | Used by:37 |
Symbol 23 Graphic | Used by:37 | |
Symbol 24 Button | Uses:14 | Used by:37 |
Symbol 25 Button | Uses:14 | Used by:37 |
Symbol 26 Text | Uses:9 | Used by:37 |
Symbol 27 Button | Uses:14 | Used by:37 |
Symbol 28 Text | Uses:9 | Used by:37 |
Symbol 29 Text | Uses:9 | Used by:37 |
Symbol 30 EditableText | Uses:9 | Used by:37 |
Symbol 31 Graphic | Used by:37 | |
Symbol 32 Button | Uses:14 | Used by:37 |
Symbol 33 Button | Uses:14 | Used by:37 |
Symbol 34 Button | Uses:14 | Used by:37 |
Symbol 35 Text | Uses:9 | Used by:37 |
Symbol 36 Button | Uses:14 | Used by:37 |
Symbol 37 MovieClip | Uses:22 23 24 25 26 14 27 28 29 30 31 32 33 34 35 36 | Used by:Timeline |
Symbol 38 Graphic | Used by:Timeline | |
Symbol 39 MovieClip | Uses:14 | Used by:Timeline |
Symbol 40 MovieClip | Uses:14 | Used by:Timeline |
Symbol 41 EditableText | Uses:11 | Used by:Timeline |
Symbol 42 EditableText | Uses:11 | Used by:Timeline |
Symbol 43 Graphic | Used by:51 | |
Symbol 44 Text | Uses:11 | Used by:51 |
Symbol 45 Text | Uses:9 | Used by:51 |
Symbol 46 Text | Uses:9 | Used by:48 |
Symbol 47 Button | Uses:14 | Used by:48 |
Symbol 48 MovieClip | Uses:14 46 47 | Used by:51 |
Symbol 49 Button | Uses:14 | Used by:51 |
Symbol 50 Button | Uses:14 | Used by:51 53 Timeline |
Symbol 51 MovieClip | Uses:43 44 45 48 49 50 | Used by:Timeline |
Symbol 52 Text | Uses:9 | Used by:53 |
Symbol 53 MovieClip | Uses:14 52 50 | Used by:Timeline |
Symbol 54 Graphic | Used by:Timeline | |
Symbol 55 Text | Uses:11 | Used by:Timeline |
Symbol 56 EditableText | Uses:9 | Used by:Timeline |
Symbol 57 EditableText | Uses:9 | Used by:Timeline |
Symbol 58 Text | Uses:9 | Used by:Timeline |
Symbol 59 Text | Uses:9 | Used by:Timeline |
Symbol 60 Button | Uses:14 | Used by:Timeline |
Symbol 61 Button | Uses:14 | Used by:Timeline |
Symbol 62 Button | Uses:14 | Used by:Timeline |
Symbol 63 Graphic | Used by:Timeline | |
Symbol 64 EditableText | Uses:9 | Used by:Timeline |
Symbol 65 EditableText | Uses:9 | Used by:Timeline |
Symbol 66 Text | Uses:9 | Used by:Timeline |
Symbol 67 Graphic | Used by:69 71 | |
Symbol 68 Text | Uses:11 | Used by:69 |
Symbol 69 Button | Uses:67 68 | Used by:72 |
Symbol 70 Text | Uses:11 | Used by:71 |
Symbol 71 Button | Uses:67 70 | Used by:72 |
Symbol 72 MovieClip | Uses:69 71 | Used by:Timeline |
Instance Names
"demoTimer" | Frame 1 | Symbol 20 MovieClip |
"instructions" | Frame 2 | Symbol 37 MovieClip |
"pad1" | Frame 3 | Symbol 39 MovieClip |
"pad2" | Frame 3 | Symbol 39 MovieClip |
"ball" | Frame 3 | Symbol 40 MovieClip |
"win" | Frame 3 | Symbol 51 MovieClip |
"dataBoy" | Frame 4 | Symbol 20 MovieClip |
"submitButton" | Frame 5 | Symbol 72 MovieClip |
"winSubmit" | Symbol 51 MovieClip Frame 1 | Symbol 48 MovieClip |
Special Tags
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "topSnd" |
ExportAssets (56) | Timeline Frame 1 | Symbol 2 as "pong" |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "misSnd" |
ExportAssets (56) | Timeline Frame 1 | Symbol 4 as "p2Snd" |
ExportAssets (56) | Timeline Frame 1 | Symbol 5 as "p1Snd" |
ExportAssets (56) | Timeline Frame 1 | Symbol 6 as "botSnd" |
ExportAssets (56) | Timeline Frame 1 | Symbol 7 as "winSnd" |
Dynamic Text Variables
showInputType | Symbol 30 EditableText | "" |
_root.computer | Symbol 41 EditableText | "" |
_root.player | Symbol 42 EditableText | "" |
title | Symbol 56 EditableText | "" |
scores | Symbol 57 EditableText | "" |
reply | Symbol 64 EditableText | "" |
name | Symbol 65 EditableText | "" |
|