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 #27354 |
You've finished the race |
Main Menu |
GAME OVER click to start again |
20 |
40 |
60 |
80 |
100 |
120 |
140 |
160 |
180 |
200 |
220 |
KPH |
RACE |
RACE |
space racers! |
get ready starts right away!!! |
STOP |
SPACE BAR |
PRODUCTION |
20 |
40 |
60 |
80 |
100 |
120 |
140 |
160 |
180 |
200 |
220 |
KPH |
50 |
0 |
Last Lap |
1 |
Lap / |
Best Lap |
1 |
ActionScript [AS1/AS2]
Frame 1start_btn.onRelease = function () { play(); }; stop();Frame 2function init() { _quality = "low"; max_vel = 10; opponent_max_vel = 10; min_vel = 0; acceleration = 0.4; opponent_acceleration = 0.4; deceleration = 0.98; brake = -1; reverse = -0.1; max_rev_vel = -3; turn = 4; opponent_turn = 10; slow = 0.85; opponent_slow = 0.85; lap = 1; totallaps = 5; vel = 0; scaleSmooth = 0; startTime = getTimer(); engineSnd = new Sound(); engineSnd.attachSound("engine"); toRadians = (Math.PI/180); startRace(); } function startRace() { function checkTurn() { var _local2 = new Object(); _local2.x = this._x; _local2.y = this._y; this._parent.localToGlobal(_local2); if (this._parent._parent.inner.hitTest(_local2.x, _local2.y, true)) { this._parent._rotation = this._parent._rotation + (opponent_turn * this.direction); this._parent.vel = this._parent.vel * opponent_slow; } } car.onEnterFrame = function () { if (Key.isDown(39)) { this._rotation = this._rotation + turn; } else if (Key.isDown(37)) { this._rotation = this._rotation - turn; } if (Key.isDown(38)) { if (vel < max_vel) { vel = vel + acceleration; } } else if (Key.isDown(40)) { if (vel > max_rev_vel) { vel = vel + reverse; } } else { vel = vel * deceleration; } if (Key.isDown(32)) { if (vel > min_vel) { vel = vel + brake; } else { vel = 0; } } container.track._x = container.track._x + (vel * Math.sin(this._rotation * toRadians)); container.track._y = container.track._y - (vel * Math.cos(this._rotation * toRadians)); container.crash._x = (container_over.inner._x = container.track._x); container.crash._y = (container_over.inner._y = container.track._y); if (container.hitTest(this._x, this._y, true)) { vel = vel * slow; } if (container.crash.hitTest(this._x, this._y, true)) { endRace(); attachMovie("game_over", "game_over", 1); game_over.onRelease = function () { this.removeMovieClip(); gotoAndStop (1); }; game_over._x = 180; game_over._y = 200; } rate = 0.1; scale_factor = 200 - (_root.vel * 10); scaleSmooth = scaleSmooth + ((scale_factor - container._yscale) * rate); container._yscale = (container._xscale = scaleSmooth); container_over._yscale = (container_over._xscale = scaleSmooth); this._yscale = (this._xscale = scaleSmooth); gui_vel = vel * 20; gui_needle._rotation = gui_vel * 1.3; }; container_over.inner.lapstart.onEnterFrame = function () { if (this.hitTest(car._x, car._y)) { if (halfway) { gui_lastlap = ((getTimer() - startTime) / 1000) + " s"; if (gui_lastlap < gui_bestlap) { gui_bestlap = gui_lastlap; } if (lap == _root.totallaps) { endRace(); attachMovie("congratulations", "congrats", 100); congrats.onRelease = function () { this.removeMovieClip(); gotoAndStop (1); }; congrats._x = 180; congrats._y = 200; } else { startTime = getTimer(); lap++; halfway = false; } } } }; container_over.inner.laphalf.onEnterFrame = function () { if (this.hitTest(car._x, car._y)) { halfway = true; } }; container.track.opponent1.vel = 0; container.track.opponent1.onEnterFrame = function () { var _local2 = this._rotation; if (this.vel <= opponent_max_vel) { this.vel = this.vel + opponent_acceleration; } this._x = this._x - (Math.sin(_local2 * toRadians) * this.vel); this._y = this._y + (Math.cos(_local2 * toRadians) * this.vel); }; container.track.opponent1.point1.direction = -1; container.track.opponent1.point2.direction = 1; container.track.opponent1.point1.onEnterFrame = checkTurn; container.track.opponent1.point2.onEnterFrame = checkTurn; } function endRace() { delete car.onEnterFrame; delete container.track.opponent1.point2.onEnterFrame; delete container.track.opponent1.point1.onEnterFrame; delete container.track.opponent1.onEnterFrame; delete container_over.inner.lapstart.onEnterFrame; delete container_over.inner.laphalf.onEnterFrame; clearInterval(engineInt); stopAllSounds(); } function engine() { var _local1 = vel / max_vel; engineSnd.stop(); engineSnd.start((engineSnd.duration * _local1) / 1300); } engineInt = setInterval(engine, 100); init(); stop();Instance of Symbol 56 MovieClip "container_over" in Frame 2/* no clip actions */
Library Items
Symbol 1 Sound [skid] | ||
Symbol 2 Sound [engine] | ||
Symbol 3 Graphic | Used by:8 10 | |
Symbol 4 Font | Used by:5 7 9 30 36 37 58 59 60 61 62 63 64 65 66 67 68 69 70 | |
Symbol 5 Text | Uses:4 | Used by:8 |
Symbol 6 Graphic | Used by:8 | |
Symbol 7 Text | Uses:4 | Used by:8 |
Symbol 8 MovieClip [congratulations] | Uses:3 5 6 7 | |
Symbol 9 Text | Uses:4 | Used by:10 |
Symbol 10 MovieClip [game_over] | Uses:3 9 | |
Symbol 11 Graphic | Used by:Timeline | |
Symbol 12 Font | Used by:13 14 15 16 17 18 19 20 21 22 23 24 28 | |
Symbol 13 EditableText | Uses:12 | Used by:Timeline |
Symbol 14 EditableText | Uses:12 | Used by:Timeline |
Symbol 15 EditableText | Uses:12 | Used by:Timeline |
Symbol 16 EditableText | Uses:12 | Used by:Timeline |
Symbol 17 EditableText | Uses:12 | Used by:Timeline |
Symbol 18 EditableText | Uses:12 | Used by:Timeline |
Symbol 19 EditableText | Uses:12 | Used by:Timeline |
Symbol 20 EditableText | Uses:12 | Used by:Timeline |
Symbol 21 EditableText | Uses:12 | Used by:Timeline |
Symbol 22 EditableText | Uses:12 | Used by:Timeline |
Symbol 23 EditableText | Uses:12 | Used by:Timeline |
Symbol 24 EditableText | Uses:12 | Used by:Timeline |
Symbol 25 Graphic | Used by:26 | |
Symbol 26 MovieClip | Uses:25 | Used by:Timeline |
Symbol 27 Graphic | Used by:31 | |
Symbol 28 EditableText | Uses:12 | Used by:31 |
Symbol 29 Graphic | Used by:31 | |
Symbol 30 Text | Uses:4 | Used by:31 |
Symbol 31 Button | Uses:27 28 29 30 | Used by:Timeline |
Symbol 32 Font | Used by:33 | |
Symbol 33 Text | Uses:32 | Used by:Timeline |
Symbol 34 Font | Used by:35 | |
Symbol 35 Text | Uses:34 | Used by:Timeline |
Symbol 36 EditableText | Uses:4 | Used by:Timeline |
Symbol 37 EditableText | Uses:4 | Used by:Timeline |
Symbol 38 Font | Used by:39 | |
Symbol 39 EditableText | Uses:38 | Used by:Timeline |
Symbol 40 Graphic | Used by:Timeline | |
Symbol 41 Graphic | Used by:42 | |
Symbol 42 MovieClip | Uses:41 | Used by:46 |
Symbol 43 Graphic | Used by:45 | |
Symbol 44 MovieClip | Used by:45 | |
Symbol 45 MovieClip | Uses:43 44 | Used by:46 |
Symbol 46 MovieClip | Uses:42 45 | Used by:49 |
Symbol 47 Graphic | Used by:48 | |
Symbol 48 MovieClip | Uses:47 | Used by:49 |
Symbol 49 MovieClip | Uses:46 48 | Used by:Timeline |
Symbol 50 Graphic | Used by:51 | |
Symbol 51 MovieClip | Uses:50 | Used by:Timeline |
Symbol 52 Graphic | Used by:55 | |
Symbol 53 Graphic | Used by:54 | |
Symbol 54 MovieClip | Uses:53 | Used by:55 |
Symbol 55 MovieClip | Uses:52 54 | Used by:56 |
Symbol 56 MovieClip | Uses:55 | Used by:Timeline |
Symbol 57 Graphic | Used by:Timeline | |
Symbol 58 EditableText | Uses:4 | Used by:Timeline |
Symbol 59 EditableText | Uses:4 | Used by:Timeline |
Symbol 60 EditableText | Uses:4 | Used by:Timeline |
Symbol 61 EditableText | Uses:4 | Used by:Timeline |
Symbol 62 EditableText | Uses:4 | Used by:Timeline |
Symbol 63 EditableText | Uses:4 | Used by:Timeline |
Symbol 64 EditableText | Uses:4 | Used by:Timeline |
Symbol 65 EditableText | Uses:4 | Used by:Timeline |
Symbol 66 EditableText | Uses:4 | Used by:Timeline |
Symbol 67 EditableText | Uses:4 | Used by:Timeline |
Symbol 68 EditableText | Uses:4 | Used by:Timeline |
Symbol 69 EditableText | Uses:4 | Used by:Timeline |
Symbol 70 EditableText | Uses:4 | Used by:Timeline |
Symbol 71 Font | Used by:72 73 | |
Symbol 72 EditableText | Uses:71 | Used by:Timeline |
Symbol 73 EditableText | Uses:71 | Used by:Timeline |
Symbol 74 Font | Used by:75 79 | |
Symbol 75 Text | Uses:74 | Used by:Timeline |
Symbol 76 Font | Used by:77 78 79 80 | |
Symbol 77 EditableText | Uses:76 | Used by:Timeline |
Symbol 78 Text | Uses:76 | Used by:Timeline |
Symbol 79 Text | Uses:74 76 | Used by:Timeline |
Symbol 80 EditableText | Uses:76 | Used by:Timeline |
Symbol 81 Graphic | Used by:82 | |
Symbol 82 MovieClip | Uses:81 | Used by:Timeline |
Instance Names
"start_btn" | Frame 1 | Symbol 31 Button |
"container" | Frame 2 | Symbol 49 MovieClip |
"car" | Frame 2 | Symbol 51 MovieClip |
"container_over" | Frame 2 | Symbol 56 MovieClip |
"gui_needle" | Frame 2 | Symbol 82 MovieClip |
"point1" | Symbol 45 MovieClip Frame 1 | Symbol 44 MovieClip |
"point2" | Symbol 45 MovieClip Frame 1 | Symbol 44 MovieClip |
"inner" | Symbol 46 MovieClip Frame 1 | Symbol 42 MovieClip |
"opponent1" | Symbol 46 MovieClip Frame 1 | Symbol 45 MovieClip |
"track" | Symbol 49 MovieClip Frame 1 | Symbol 46 MovieClip |
"crash" | Symbol 49 MovieClip Frame 1 | Symbol 48 MovieClip |
"lapstart" | Symbol 55 MovieClip Frame 1 | Symbol 54 MovieClip |
"laphalf" | Symbol 55 MovieClip Frame 1 | Symbol 54 MovieClip |
"inner" | Symbol 56 MovieClip Frame 1 | Symbol 55 MovieClip |
Special Tags
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "skid" |
ExportAssets (56) | Timeline Frame 1 | Symbol 2 as "engine" |
ExportAssets (56) | Timeline Frame 1 | Symbol 8 as "congratulations" |
ExportAssets (56) | Timeline Frame 1 | Symbol 10 as "game_over" |
Dynamic Text Variables
gui_vel | Symbol 70 EditableText | "" |
gui_bestlap | Symbol 72 EditableText | "50" |
gui_lastlap | Symbol 73 EditableText | "0" |
_root.lap | Symbol 77 EditableText | "1" |
_root.totallaps | Symbol 80 EditableText | "1" |
|