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/62693149?noj=FRM62693149-22DC" width="1" height="1"></div>

racing game! vol.1.swf

This is the info page for
Flash #27354

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


Text
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 1
start_btn.onRelease = function () { play(); }; stop();
Frame 2
function 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 GraphicUsed by:8 10
Symbol 4 FontUsed by:5 7 9 30 36 37 58 59 60 61 62 63 64 65 66 67 68 69 70
Symbol 5 TextUses:4Used by:8
Symbol 6 GraphicUsed by:8
Symbol 7 TextUses:4Used by:8
Symbol 8 MovieClip [congratulations]Uses:3 5 6 7
Symbol 9 TextUses:4Used by:10
Symbol 10 MovieClip [game_over]Uses:3 9
Symbol 11 GraphicUsed by:Timeline
Symbol 12 FontUsed by:13 14 15 16 17 18 19 20 21 22 23 24 28
Symbol 13 EditableTextUses:12Used by:Timeline
Symbol 14 EditableTextUses:12Used by:Timeline
Symbol 15 EditableTextUses:12Used by:Timeline
Symbol 16 EditableTextUses:12Used by:Timeline
Symbol 17 EditableTextUses:12Used by:Timeline
Symbol 18 EditableTextUses:12Used by:Timeline
Symbol 19 EditableTextUses:12Used by:Timeline
Symbol 20 EditableTextUses:12Used by:Timeline
Symbol 21 EditableTextUses:12Used by:Timeline
Symbol 22 EditableTextUses:12Used by:Timeline
Symbol 23 EditableTextUses:12Used by:Timeline
Symbol 24 EditableTextUses:12Used by:Timeline
Symbol 25 GraphicUsed by:26
Symbol 26 MovieClipUses:25Used by:Timeline
Symbol 27 GraphicUsed by:31
Symbol 28 EditableTextUses:12Used by:31
Symbol 29 GraphicUsed by:31
Symbol 30 TextUses:4Used by:31
Symbol 31 ButtonUses:27 28 29 30Used by:Timeline
Symbol 32 FontUsed by:33
Symbol 33 TextUses:32Used by:Timeline
Symbol 34 FontUsed by:35
Symbol 35 TextUses:34Used by:Timeline
Symbol 36 EditableTextUses:4Used by:Timeline
Symbol 37 EditableTextUses:4Used by:Timeline
Symbol 38 FontUsed by:39
Symbol 39 EditableTextUses:38Used by:Timeline
Symbol 40 GraphicUsed by:Timeline
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:41Used by:46
Symbol 43 GraphicUsed by:45
Symbol 44 MovieClipUsed by:45
Symbol 45 MovieClipUses:43 44Used by:46
Symbol 46 MovieClipUses:42 45Used by:49
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClipUses:47Used by:49
Symbol 49 MovieClipUses:46 48Used by:Timeline
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:Timeline
Symbol 52 GraphicUsed by:55
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClipUses:53Used by:55
Symbol 55 MovieClipUses:52 54Used by:56
Symbol 56 MovieClipUses:55Used by:Timeline
Symbol 57 GraphicUsed by:Timeline
Symbol 58 EditableTextUses:4Used by:Timeline
Symbol 59 EditableTextUses:4Used by:Timeline
Symbol 60 EditableTextUses:4Used by:Timeline
Symbol 61 EditableTextUses:4Used by:Timeline
Symbol 62 EditableTextUses:4Used by:Timeline
Symbol 63 EditableTextUses:4Used by:Timeline
Symbol 64 EditableTextUses:4Used by:Timeline
Symbol 65 EditableTextUses:4Used by:Timeline
Symbol 66 EditableTextUses:4Used by:Timeline
Symbol 67 EditableTextUses:4Used by:Timeline
Symbol 68 EditableTextUses:4Used by:Timeline
Symbol 69 EditableTextUses:4Used by:Timeline
Symbol 70 EditableTextUses:4Used by:Timeline
Symbol 71 FontUsed by:72 73
Symbol 72 EditableTextUses:71Used by:Timeline
Symbol 73 EditableTextUses:71Used by:Timeline
Symbol 74 FontUsed by:75 79
Symbol 75 TextUses:74Used by:Timeline
Symbol 76 FontUsed by:77 78 79 80
Symbol 77 EditableTextUses:76Used by:Timeline
Symbol 78 TextUses:76Used by:Timeline
Symbol 79 TextUses:74 76Used by:Timeline
Symbol 80 EditableTextUses:76Used by:Timeline
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:81Used by:Timeline

Instance Names

"start_btn"Frame 1Symbol 31 Button
"container"Frame 2Symbol 49 MovieClip
"car"Frame 2Symbol 51 MovieClip
"container_over"Frame 2Symbol 56 MovieClip
"gui_needle"Frame 2Symbol 82 MovieClip
"point1"Symbol 45 MovieClip Frame 1Symbol 44 MovieClip
"point2"Symbol 45 MovieClip Frame 1Symbol 44 MovieClip
"inner"Symbol 46 MovieClip Frame 1Symbol 42 MovieClip
"opponent1"Symbol 46 MovieClip Frame 1Symbol 45 MovieClip
"track"Symbol 49 MovieClip Frame 1Symbol 46 MovieClip
"crash"Symbol 49 MovieClip Frame 1Symbol 48 MovieClip
"lapstart"Symbol 55 MovieClip Frame 1Symbol 54 MovieClip
"laphalf"Symbol 55 MovieClip Frame 1Symbol 54 MovieClip
"inner"Symbol 56 MovieClip Frame 1Symbol 55 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "skid"
ExportAssets (56)Timeline Frame 1Symbol 2 as "engine"
ExportAssets (56)Timeline Frame 1Symbol 8 as "congratulations"
ExportAssets (56)Timeline Frame 1Symbol 10 as "game_over"

Dynamic Text Variables

gui_velSymbol 70 EditableText""
gui_bestlapSymbol 72 EditableText"50"
gui_lastlapSymbol 73 EditableText"0"
_root.lapSymbol 77 EditableText"1"
_root.totallapsSymbol 80 EditableText"1"




http://swfchan.com/6/27354/info.shtml
Created: 21/5 -2019 16:11:49 Last modified: 21/5 -2019 16:11:49 Server time: 22/12 -2024 13:59:55