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

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

Unicycle Challenge.swf

This is the info page for
Flash #14988

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


Text
0%

Loading:

Brought to you by www.gfxmonk.com

Brought to you by www.gfxmonk.com

Instructions

Instructions

Try to balance your unicycle while avoiding the juggling
balls that those pesky jugglers keep dropping...

Unicycle
Challenge:

Unicycle
Challenge:

Play

Play

Instructions:

Rules:
1) Don't tip over too far, or else you'll fall off
2) Dodge the juggling balls that roll across your path
(pretty simple, eh?)

Controls:
Move your mouse from side to side - the wheel of the unicycle will follow.
To jump, hold down and then release the spacebar. The "Jump" meter
indicates how high you'll jump when you release the spacebar.
While you are in the air you cannot tilt the unicycle or change your
direction, so make sure you're fairly straight before jumping.

This indicator means
another juggling ball is
about to appear.

Jump

Ball (ouch)

Instructions:

00:00:00

Time:

00:00:00

Your Best:

Current High Scores

Current High Scores

Current High Scores

Submit Your Score

Submit Your Score

Submit Your Score

Try again

Try again

Try again

Ouch....

00:00:00

Your Best Time:

00:00:00

Your Best:

Name:

Time:

Submitting (please wait)...

Back to game

Back to game

Back to game

Submit your score:

If you're good enough, you just might
make it to the top ten...

Submit your score:

(Loading High scores)

1)
2)
3)
4)
5)
6)
7)
8)
9)
10)

Current High Scores:

Current High Scores:

ActionScript [AS1/AS2]

Frame 1
stop(); _root.i = 0; _root.p_width = _root.load_percent._width; _root.onEnterFrame = function () { TotalBytes = getBytesTotal(); BytesLoaded = getBytesLoaded(); PercentLoaded = Math.round((BytesLoaded / TotalBytes) * 100); i++; if ((i % 5) == 0) { _root.preloader.text = PercentLoaded + "%"; _root.preloader2.text = PercentLoaded + "%"; } _root.load_percent._width = (PercentLoaded / 100) * p_width; if (BytesLoaded >= TotalBytes) { delete this.onEnterFrame; gotoAndStop (2); } };
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 54 MovieClip "indicator_demo" in Frame 3
onClipEvent (load) { i = 0; interval = 50; this._alpha = 0; dir = 1; } onClipEvent (enterFrame) { if (this._alpha <= -50) { this._alpha = this._alpha + 5; dir = 1; } else if (this._alpha >= 120) { this._alpha = this._alpha - 5; dir = 0; } else if (dir == 1) { this._alpha = this._alpha + 5; } else { this._alpha = this._alpha - 5; } i++; }
Instance of Symbol 60 MovieClip "demo_ball" in Frame 3
onClipEvent (enterFrame) { this.roll._rotation = this.roll._rotation - 10; }
Instance of Symbol 66 MovieClip "jump_demo" in Frame 3
onClipEvent (load) { i = 0; interval = 60; } onClipEvent (enterFrame) { if ((i % interval) == 10) { this.play(); } i++; }
Frame 4
stop();
Instance of Symbol 72 MovieClip "UNI_ROOT" in Frame 4
onClipEvent (load) { function makeball() { if (_root.ball_indicator._alpha >= 120) { if (bs_min > 6) { bs_min = bs_min - 1; } if (bs_max < 17) { bs_max = bs_max + 1; } ball_speed = Math.floor(Math.random() * (bs_max - bs_min)) + bs_min; ball_rot_per_frame = 360 * (ball_speed / ball_circ); next_timeout = Math.floor(Math.random() * (max_timeout - min_timeout)) + min_timeout; _root.ball._x = ball_start_x; } else { _root.ball_indicator._alpha = _root.ball_indicator._alpha + indicator_fade_in; } } function reset_ball() { _root.ball._x = -70; next_timeout = -2500; } STARTx = this._x; STARTy = _root.wheel._y; STARTy_dude = _root.dude._y; ball_start_x = _root.ball._x; jumping = 0; jump_vel = 0; charge_time = 16; max_charge = -22; jump_charge = max_charge / charge_time; gravity = 1.8; rot_limit = 90; max_difficulty = 7.5; difficulty_init = 0; difficulty = difficulty_init; tightness_init = 100; tightness = tightness_init; tightness_max = 30; difficulty_buffer = 120; tightness_add = (tightness_max - tightness) / difficulty_buffer; diff_add = (max_difficulty - difficulty) / difficulty_buffer; accn = 0; arms_factor = -0.75; ball_speed = 8; bs_max = 14; bs_min = 11; ball_circ = _root.ball._width * Math.PI; ball_rot_per_frame = 360 * (ball_speed / ball_circ); min_timeout = -700; max_timeout = -1500; circ = _root.wheel._height * 3.14159; wheel_r = _root.wheel._width / 2; ball_r = _root.ball._width / 2; elasticity = -0.075; this._y = -50; fadein_speed = 6; fadeout_speed = 10; time_init = new Date(); _root.restart._visible = false; _root.restart._alpha = 0; best_ms = 0; best_sub = 0; indicator_fade = 10; indicator_fade_in = 5; _root.ball_indicator._alpha = 0; reset_ball(); cheat = false; } onClipEvent (enterFrame) { if (_root._currentframe == 5) { _root.btime_submit.text = btime_txt; } else { nowx = _root._xmouse; if (_root.wheel._y == STARTy) { accn = this._x - nowx; } distance = this._x - STARTx; time_now = new Date(); diff_ms = time_now.getTime() - time_init.getTime(); if (diff_ms > best_ms) { best_ms = diff_ms; } mins = Math.floor(diff_ms / 60000); secs = Math.floor(diff_ms / 1000) % 60; msecs = Math.floor(diff_ms / 100) % 10; bmins = Math.floor(best_ms / 60000); bsecs = Math.floor(best_ms / 1000) % 60; bmsecs = Math.floor(best_ms / 100) % 10; if (mins < 10) { mp = "0"; } else { mp = ""; } if (secs < 10) { sp = "0"; } else { sp = ""; } if (bmins < 10) { bmp = "0"; } else { bmp = ""; } if (bsecs < 10) { bsp = "0"; } else { bsp = ""; } time_txt = mp.concat(mins.toString(), ":", sp, secs.toString(), ":", msecs.toString()); btime_txt = bmp.concat(bmins.toString(), ":", bsp, bsecs.toString(), ":", bmsecs.toString()); wheel_rot = 360 * (distance / circ); wheel_rot_rad = ((wheel_rot / 360) * 2) * Math.PI; if (difficulty < max_difficulty) { difficulty = difficulty + diff_add; tightness = tightness + tightness_add; } guy_rot = _root.dude._rotation; guy_rot_rad = ((guy_rot / 360) * 2) * Math.PI; rotation_fall_add = difficulty * Math.sin(guy_rot_rad); guy_rot = guy_rot + (accn / tightness); guy_rot = guy_rot + rotation_fall_add; if (_root.ball._x >= next_timeout) { if (_root.ball_indicator._alpha > 0) { _root.ball_indicator._alpha = _root.ball_indicator._alpha - indicator_fade; } _root.ball._x = _root.ball._x - ball_speed; _root.ball.roll._rotation = _root.ball.roll._rotation - ball_rot_per_frame; } else { makeball(); } colx = _root.ball._x - _root.wheel._x; coly = _root.ball._y - _root.wheel._y; cold = Math.sqrt((colx * colx) + (coly * coly)); minimum_distance = wheel_r + ball_r; if (cold < minimum_distance) { hit = 1; } else { hit = 0; } if (((guy_rot > rot_limit) || (guy_rot < (-rot_limit))) || (hit == 1)) { guy_rot = rot_limit; this._y = -60; time_init = new Date(); reset_ball(); } if (this._y == -50) { if (Key.isDown(32) && (!jumping)) { if (jump_vel > max_charge) { jump_vel = jump_vel + jump_charge; _root.jump_charge.play(); } } else if ((jump_vel != 0) && (!jumping)) { jumping = 1; _root.wheel._y = _root.wheel._y + jump_vel; _root.dude._y = _root.dude._y + jump_vel; jump_vel = jump_vel + gravity; _root.jump_charge.gotoAndStop(1); } if (_root.wheel._y < Math.floor(STARTy)) { if ((STARTy - _root.wheel._y) <= jump_vel) { _root.wheel._y = STARTy; _root.dude._y = STARTy_dude; _root.SHADOW._alpha = 100; jump_vel = 0; jumping = 0; } else { _root.SHADOW._alpha = 100 - ((STARTy - _root.wheel._y) / 2.2); _root.wheel._y = _root.wheel._y + jump_vel; _root.dude._y = _root.dude._y + jump_vel; jump_vel = jump_vel + gravity; } } else { _root.dude._rotation = guy_rot; _root.dude.right_arm._rotation = (guy_rot * arms_factor) * 0.7; _root.dude.left_arm._rotation = guy_rot * arms_factor; } this._x = this._x + (accn * elasticity); _root.wheel._x = this._x; _root.SHADOW._x = this._x; _root.dude._x = this._x; _root.wheel._rotation = wheel_rot; if (_root.restart._alpha > 0) { _root.restart._alpha = _root.restart._alpha - fadeout_speed; } else { _root.restart._visible = false; } _root.timer.text = time_txt; _root.btimer.text = btime_txt; _root.restart.btimer2.text = btime_txt; } else if (_root.restart._alpha < 120) { _root.restart._visible = true; _root.restart._alpha = _root.restart._alpha + fadein_speed; difficulty = difficulty_init; tightness = tightness_init; jump_vel = 0; } else { time_init = new Date(); } } }
Instance of Symbol 96 MovieClip "restart" in Frame 4
onClipEvent (enterFrame) { if (this._alpha >= 100) { this.btimer2.text = _root.UNI_ROOT.btime_txt; trace(_root.UNI_ROOT.btime_txt); } }
Frame 5
stop();
Instance of Symbol 109 MovieClip "submitting_note" in Frame 5
onClipEvent (load) { this._visible = false; }
Frame 6
scores_xml = new XML(); scores_xml.ignoreWhite = true; names = new Array(); times = new Array(); timestr = ""; namestr = ""; i = 1; scores_xml.onLoad = function (success) { if (success) { var _local2 = 0; while (_local2 < scores_xml.firstChild.childNodes.length) { rank = scores_xml.firstChild.childNodes[_local2].attributes.rank; hname = scores_xml.firstChild.childNodes[_local2].attributes.name; min = scores_xml.firstChild.childNodes[_local2].attributes.min; sec = scores_xml.firstChild.childNodes[_local2].attributes.sec; ms = scores_xml.firstChild.childNodes[_local2].attributes.ms; names[rank] = hname; times[rank] = (((min + ":") + sec) + ":") + ms; _local2++; } rank = 1; while (rank <= 10) { timestr = (timestr + times[rank]) + newline; namestr = (namestr + names[rank]) + newline; rank++; } _root.score_times.text = timestr; } else { namestr = "Error:\nCouldn't load\nhigh score data"; } _root.score_names.text = namestr; }; scores_xml.load("http://www.gfxmonk.com/misc/unigame/highscores.xml"); stop();
Symbol 13 Button
on (release) { getURL ("http://www.gfxmonk.com", "_new"); }
Symbol 20 Button
on (press) { gotoAndStop (3); }
Symbol 46 Button
on (press) { gotoAndStop (4); }
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 20
stop();
Symbol 82 Button
on (release) { _root.gotoAndStop(6); }
Symbol 87 Button
on (release) { _root.gotoAndStop(5); }
Symbol 92 Button
on (release) { _root.UNI_ROOT._y = -50; x = _root._xmouse; _root.UNI_ROOT._x = x; _root.wheel._x = x; _root.SHADOW._x = x; _root.dude._x = x - 5; _root.dude._rotation = -0.5; _root.jump_charge.gotoAndStop(1); }
Symbol 99 Button
on (release) { getURL ("http://www.tim3d.tk", "_new"); }
Symbol 106 Button
on (release) { if (_root.UNI_ROOT.best_sub != _root.UNI_ROOT.best_ms) { if (_root.name.text != "") { _root.submit_submit._visible = false; _root.submitting_note._visible = true; submit_data = new LoadVars(); verification = new LoadVars(); submit_data.hfdhjihehgsd = _root.name.text; submit_data.gfuyalamodhiq = _root.UNI_ROOT.best_ms; submit_data.sendAndLoad("http://www.gfxmonk.com/misc/unigame/score.php", verification, "GET"); verification.onLoad = function (success) { trace((("loaded: " + success) + ", ") + verification.msg); if ((success == true) && (verification.msg == "ok")) { _root.UNI_ROOT.best_sub = _root.UNI_ROOT.best_ms; gotoAndStop (6); } if (verification.msg == "ERROR") { _root.error_display.text = "Server Error:\n" + verification.error; _root.submit_submit._visible = true; _root.submitting_note._visible = false; } }; } else { _root.error_display.text = "Submission Error:\nYou need to enter a name!"; } } else { _root.error_display.text = "Submission Error:\nYou have already submitted this score!"; } }
Symbol 114 Button
on (release) { _root.gotoAndStop(4); _root.ball._x = -70; _root.UNI_ROOT.next_timeout = -2500; _root.UNI_ROOT.time_init = new Date(); }
Symbol 123 Button
on (release) { gotoAndStop (5); }
Symbol 125 Button
on (release) { _root.gotoAndStop(4); }

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 2 GraphicUsed by:Timeline
Symbol 3 GraphicUsed by:Timeline
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:Timeline
Symbol 6 FontUsed by:7 93
Symbol 7 EditableTextUses:6Used by:Timeline
Symbol 8 FontUsed by:9 10 11
Symbol 9 TextUses:8Used by:Timeline
Symbol 10 TextUses:8Used by:13 99
Symbol 11 TextUses:8Used by:13 99
Symbol 12 GraphicUsed by:13 99
Symbol 13 ButtonUses:10 11 12Used by:Timeline
Symbol 14 GraphicUsed by:15 46 82 87 92 106 114 123 125
Symbol 15 MovieClipUses:14Used by:20
Symbol 16 FontUsed by:17 18 43 44 78 79 80 83 84 85 88 89 90 110 111 112
Symbol 17 TextUses:16Used by:20
Symbol 18 TextUses:16Used by:20
Symbol 19 GraphicUsed by:20
Symbol 20 ButtonUses:15 17 18 19Used by:Timeline
Symbol 21 BitmapUsed by:22
Symbol 22 GraphicUses:21Used by:56  Timeline
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:23Used by:Timeline
Symbol 25 GraphicUsed by:37
Symbol 26 GraphicUsed by:37
Symbol 27 GraphicUsed by:37
Symbol 28 GraphicUsed by:37
Symbol 29 GraphicUsed by:37
Symbol 30 GraphicUsed by:37
Symbol 31 GraphicUsed by:37
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClipUses:32Used by:37
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:34Used by:37
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClipUses:25 26 27 28 29 30 31 33 35 36Used by:Timeline
Symbol 38 FontUsed by:39 51 52 55 67 101 102 105 116
Symbol 39 TextUses:38Used by:Timeline
Symbol 40 FontUsed by:41 42 115 117 124 126
Symbol 41 TextUses:40Used by:Timeline
Symbol 42 TextUses:40Used by:Timeline
Symbol 43 TextUses:16Used by:46
Symbol 44 TextUses:16Used by:46
Symbol 45 GraphicUsed by:46
Symbol 46 ButtonUses:14 43 44 45Used by:Timeline
Symbol 47 GraphicUsed by:Timeline
Symbol 48 FontUsed by:49 68 73 75 94 97
Symbol 49 TextUses:48Used by:Timeline
Symbol 50 FontUsed by:51 52 62 74 76 95 98
Symbol 51 TextUses:50 38Used by:Timeline
Symbol 52 TextUses:50 38Used by:Timeline
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClipUses:53Used by:Timeline
Symbol 55 TextUses:38Used by:Timeline
Symbol 56 MovieClipUses:22Used by:60  Timeline
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:57Used by:60
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:56 58 59Used by:Timeline
Symbol 61 GraphicUsed by:66
Symbol 62 TextUses:50Used by:66
Symbol 63 ShapeTweeningUsed by:66
Symbol 64 GraphicUsed by:66
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClipUses:61 62 63 64 65Used by:Timeline
Symbol 67 TextUses:38Used by:Timeline
Symbol 68 TextUses:48Used by:Timeline
Symbol 69 GraphicUsed by:70 71
Symbol 70 MovieClipUses:69Used by:Timeline
Symbol 71 MovieClipUses:69Used by:Timeline
Symbol 72 MovieClipUsed by:Timeline
Symbol 73 EditableTextUses:48Used by:Timeline
Symbol 74 TextUses:50Used by:Timeline
Symbol 75 EditableTextUses:48Used by:Timeline
Symbol 76 TextUses:50Used by:Timeline
Symbol 77 GraphicUsed by:96
Symbol 78 TextUses:16Used by:82
Symbol 79 TextUses:16Used by:82
Symbol 80 TextUses:16Used by:82
Symbol 81 GraphicUsed by:82
Symbol 82 ButtonUses:14 78 79 80 81Used by:96  Timeline
Symbol 83 TextUses:16Used by:87 106 123
Symbol 84 TextUses:16Used by:87 106 123
Symbol 85 TextUses:16Used by:87 106 123
Symbol 86 GraphicUsed by:87 106 123
Symbol 87 ButtonUses:14 83 84 85 86Used by:96
Symbol 88 TextUses:16Used by:92
Symbol 89 TextUses:16Used by:92
Symbol 90 TextUses:16Used by:92
Symbol 91 GraphicUsed by:92
Symbol 92 ButtonUses:14 88 89 90 91Used by:96
Symbol 93 TextUses:6Used by:96
Symbol 94 EditableTextUses:48Used by:96
Symbol 95 TextUses:50Used by:96
Symbol 96 MovieClipUses:77 82 87 92 93 94 95Used by:Timeline
Symbol 97 EditableTextUses:48Used by:Timeline
Symbol 98 TextUses:50Used by:Timeline
Symbol 99 ButtonUses:10 11 12Used by:Timeline
Symbol 100 GraphicUsed by:Timeline
Symbol 101 TextUses:38Used by:Timeline
Symbol 102 EditableTextUses:38Used by:Timeline
Symbol 103 FontUsed by:104
Symbol 104 EditableTextUses:103Used by:Timeline
Symbol 105 TextUses:38Used by:Timeline
Symbol 106 ButtonUses:14 83 84 85 86Used by:Timeline
Symbol 107 FontUsed by:108
Symbol 108 TextUses:107Used by:109
Symbol 109 MovieClipUses:108Used by:Timeline
Symbol 110 TextUses:16Used by:114 125
Symbol 111 TextUses:16Used by:114 125
Symbol 112 TextUses:16Used by:114 125
Symbol 113 GraphicUsed by:114 125
Symbol 114 ButtonUses:14 110 111 112 113Used by:Timeline
Symbol 115 TextUses:40Used by:Timeline
Symbol 116 EditableTextUses:38Used by:Timeline
Symbol 117 TextUses:40Used by:Timeline
Symbol 118 GraphicUsed by:Timeline
Symbol 119 FontUsed by:120 121 122
Symbol 120 EditableTextUses:119Used by:Timeline
Symbol 121 EditableTextUses:119Used by:Timeline
Symbol 122 EditableTextUses:119Used by:Timeline
Symbol 123 ButtonUses:14 83 84 85 86Used by:Timeline
Symbol 124 TextUses:40Used by:Timeline
Symbol 125 ButtonUses:14 110 111 112 113Used by:Timeline
Symbol 126 TextUses:40Used by:Timeline

Instance Names

"load_percent"Frame 1Symbol 5 MovieClip
"preloader"Frame 1Symbol 7 EditableText
"indicator_demo"Frame 3Symbol 54 MovieClip
"demo_ball"Frame 3Symbol 60 MovieClip
"jump_demo"Frame 3Symbol 66 MovieClip
"SHADOW"Frame 4Symbol 56 MovieClip
"UNI_ROOT"Frame 4Symbol 72 MovieClip
"timer"Frame 4Symbol 73 EditableText
"btimer"Frame 4Symbol 75 EditableText
"wheel"Frame 4Symbol 24 MovieClip
"dude"Frame 4Symbol 37 MovieClip
"jump_charge"Frame 4Symbol 66 MovieClip
"ball"Frame 4Symbol 60 MovieClip
"ball_indicator"Frame 4Symbol 54 MovieClip
"restart"Frame 4Symbol 96 MovieClip
"btimer"Frame 5Symbol 97 EditableText
"name"Frame 5Symbol 102 EditableText
"btime_submit"Frame 5Symbol 104 EditableText
"submit_submit"Frame 5Symbol 106 Button
"submitting_note"Frame 5Symbol 109 MovieClip
"error_display"Frame 5Symbol 116 EditableText
"score_times"Frame 6Symbol 120 EditableText
"score_names"Frame 6Symbol 121 EditableText
"left_arm"Symbol 37 MovieClip Frame 1Symbol 33 MovieClip
"right_arm"Symbol 37 MovieClip Frame 1Symbol 35 MovieClip
"roll"Symbol 60 MovieClip Frame 1Symbol 58 MovieClip
"btimer2"Symbol 96 MovieClip Frame 1Symbol 94 EditableText




http://swfchan.com/3/14988/info.shtml
Created: 3/6 -2019 02:50:31 Last modified: 3/6 -2019 02:50:31 Server time: 05/05 -2024 16:14:37