STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 228033 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2560 · P5120 |
This is the info page for Flash #102094 |
Rules |
Start |
THE TROLOLO GAME |
Return to menu |
THE TROLOLO GAME - Rules |
This is your ball. With it, you're supposed to catch as many stars as you possibly can before your health runs out. You gain 1 point for every star you catch. To steer the ball, you simply use your arrow keys. This is Troll. He will do anything in his power to prevent you from catching stars and he also likes to catch stars like you;. you'll lose 1 point every time he catches one. If you touch him, you don't only lose 1 health, he will also teleport you to a random location - he surely is a troll. This is the star you should catch. Every time you or Troll catch one, its new position will be randomized, so stay on your toes. Remember that this is a game of patience and you'll gain more points if you take it nice and slow. Do also note that this game may be hard for you if you don't know the controls, so be patient and try to learn them. Protip: try to stay away from the edges and Troll. |
<p align="right"><font face="Times New Roman" size="27" color="#ffffff" letterSpacing="0.000000" kerning="1">Reset</font></p> |
<p align="right"><font face="Times New Roman" size="27" color="#ffffff" letterSpacing="0.000000" kerning="1">Reset</font></p> |
<p align="left"><font face="Times New Roman" size="27" color="#000000" letterSpacing="0.000000" kerning="1">You ran out of health!</font></p> |
<p align="left"><font face="Times New Roman" size="27" color="#000000" letterSpacing="0.000000" kerning="1">Health: 10</font></p> |
<p align="left"><font face="Times New Roman" size="27" color="#000000" letterSpacing="0.000000" kerning="1">Points: 0</font></p> |
ActionScript [AS3]
Section 1//MainTimeline (enter_Frame_och_target_events_fla.MainTimeline) package enter_Frame_och_target_events_fla { import flash.events.*; import flash.media.*; import flash.display.*; import flash.text.*; public dynamic class MainTimeline extends MovieClip { public var lblHealthRanOut:TextField; public var power:Number; public var mc_ball:MovieClip; public var points:int; public var sound; public var btnMusic:SimpleButton; public var mc_hinder:MovieClip; public var upArrow:Boolean; public var lblPoints:TextField; public var mc_star:MovieClip; public var troll_startPosx:int; public var wall_left:MovieClip; public var btnStart:SimpleButton; public var btnReset:SimpleButton; public var wall_bottom:MovieClip; public var troll_startPosy:int; public var yspeed:Number; public var wall_right:MovieClip; public var btnRules:SimpleButton; public var wall_top:MovieClip; public var btnReturnToMenu:SimpleButton; public var downArrow:Boolean; public var rightArrow:Boolean; public var leftArrow:Boolean; public var lblHealth:TextField; public var theme:Sound; public var xspeed:Number; public var health:int; public var ball_startPosx:int; public var ball_startPosy:int; public function MainTimeline(){ addFrameScript(0, frame1, 1, frame2, 2, frame3); } public function rules(_arg1:MouseEvent){ gotoAndPlay(2); } public function toggleSound(_arg1:MouseEvent){ if (sound == true){ sound = false; SoundMixer.stopAll(); btnMusic.visible = false; } else { sound = true; theme.play(); }; } public function followBall(_arg1:Event){ var _local2:int; var _local3:int; _local2 = 0; _local3 = 0; _local2 = (mc_hinder.x - mc_ball.x); _local3 = (mc_hinder.y - mc_ball.y); mc_hinder.x = (mc_hinder.x - (_local2 / 25)); mc_hinder.y = (mc_hinder.y - (_local3 / 25)); } public function moveBall(_arg1:Event){ if (leftArrow){ xspeed = (xspeed - power); }; if (rightArrow){ xspeed = (xspeed + power); }; if (upArrow){ yspeed = (yspeed - power); }; if (downArrow){ yspeed = (yspeed + power); }; mc_ball.x = (mc_ball.x + xspeed); mc_ball.y = (mc_ball.y + yspeed); if (xspeed >= 24){ xspeed = 24; }; if (yspeed >= 24){ yspeed = 24; }; if (xspeed <= -24){ xspeed = -24; }; if (yspeed <= -24){ yspeed = -24; }; if (mc_ball.hitTestObject(mc_hinder)){ health--; if (health <= 0){ xspeed = 0; yspeed = 0; power = 0; lblHealthRanOut.visible = true; btnReset.visible = true; lblHealth.text = "Health: 0"; } else { mc_ball.x = (Math.random() * 1000); mc_ball.y = (Math.random() * 540); if ((((((((mc_ball.x < 15)) || ((mc_ball.x > 1026)))) || ((mc_ball.y < 12)))) || ((mc_ball.y > 546)))){ mc_ball.x = (Math.random() * 1000); mc_ball.y = (Math.random() * 540); }; lblHealth.text = ("Health: " + String(health)); }; }; if (mc_ball.hitTestObject(mc_star)){ points++; lblPoints.text = ("Points: " + String(points)); mc_star.x = ((Math.random() * 1000) + 40); mc_star.y = ((Math.random() * 540) + 40); }; if (mc_hinder.hitTestObject(mc_star)){ points--; lblPoints.text = ("Points: " + String(points)); mc_star.x = ((Math.random() * 1000) + 40); mc_star.y = ((Math.random() * 540) + 40); }; } public function startGame(_arg1:MouseEvent){ gotoAndPlay(3); } function frame1(){ stop(); theme = new myThemeSong(); sound = true; btnMusic.addEventListener(MouseEvent.CLICK, toggleSound); btnStart.addEventListener(MouseEvent.CLICK, startGame); btnRules.addEventListener(MouseEvent.CLICK, rules); theme.play(); } public function wallCollision(_arg1:Event){ if (((mc_ball.hitTestObject(wall_top)) || (mc_ball.hitTestObject(wall_bottom)))){ yspeed = (yspeed * -1); }; if (((mc_ball.hitTestObject(wall_left)) || (mc_ball.hitTestObject(wall_right)))){ xspeed = (xspeed * -1); }; } function frame3(){ stop(); leftArrow = false; rightArrow = false; upArrow = false; downArrow = false; yspeed = 0; xspeed = 0; power = 1; ball_startPosx = mc_ball.x; ball_startPosy = mc_ball.y; troll_startPosx = mc_hinder.x; troll_startPosy = mc_hinder.y; points = 0; health = 10; btnReset.visible = false; lblHealthRanOut.visible = false; btnReset.addEventListener(MouseEvent.CLICK, resetGame); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed); stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased); stage.addEventListener(Event.ENTER_FRAME, moveBall); stage.addEventListener(Event.ENTER_FRAME, followBall); stage.addEventListener(Event.ENTER_FRAME, wallCollision); } public function keyPressed(_arg1:KeyboardEvent){ if (_arg1.keyCode == 37){ leftArrow = true; } else { if (_arg1.keyCode == 38){ upArrow = true; } else { if (_arg1.keyCode == 39){ rightArrow = true; } else { if (_arg1.keyCode == 40){ downArrow = true; }; }; }; }; } public function returnToMenu(_arg1:MouseEvent){ gotoAndPlay(1); } public function keyReleased(_arg1:KeyboardEvent){ if (_arg1.keyCode == 37){ leftArrow = false; } else { if (_arg1.keyCode == 38){ upArrow = false; } else { if (_arg1.keyCode == 39){ rightArrow = false; } else { if (_arg1.keyCode == 40){ downArrow = false; }; }; }; }; } public function resetGame(_arg1:MouseEvent){ points = 0; health = 10; lblPoints.text = ("Points: " + String(points)); lblHealth.text = ("Health: " + String(health)); mc_hinder.x = troll_startPosx; mc_hinder.y = troll_startPosy; mc_ball.x = ball_startPosx; mc_ball.y = ball_startPosy; btnReset.visible = false; lblHealthRanOut.visible = false; power = 1.5; } function frame2(){ stop(); btnReturnToMenu.addEventListener(MouseEvent.CLICK, returnToMenu); } } }//package enter_Frame_och_target_events_flaSection 2//myThemeSong (myThemeSong) package { import flash.media.*; public dynamic class myThemeSong extends Sound { } }//package
Library Items
Symbol 1 Sound {myThemeSong} | ||
Symbol 2 Graphic | Used by:6 18 | |
Symbol 3 Font | Used by:4 8 16 17 19 20 52 54 60 61 62 | |
Symbol 4 Text | Uses:3 | Used by:6 |
Symbol 5 Graphic | Used by:6 18 | |
Symbol 6 Button | Uses:2 4 5 | Used by:Timeline |
Symbol 7 Graphic | Used by:10 | |
Symbol 8 Text | Uses:3 | Used by:10 |
Symbol 9 Graphic | Used by:10 | |
Symbol 10 Button | Uses:7 8 9 | Used by:Timeline |
Symbol 11 Graphic | Used by:15 | |
Symbol 12 Graphic | Used by:15 | |
Symbol 13 Graphic | Used by:15 | |
Symbol 14 Graphic | Used by:15 | |
Symbol 15 Button | Uses:11 12 13 14 | Used by:Timeline |
Symbol 16 Text | Uses:3 | Used by:Timeline |
Symbol 17 Text | Uses:3 | Used by:18 |
Symbol 18 Button | Uses:2 17 5 | Used by:Timeline |
Symbol 19 Text | Uses:3 | Used by:Timeline |
Symbol 20 Text | Uses:3 | Used by:Timeline |
Symbol 21 Bitmap | Used by:22 | |
Symbol 22 Graphic | Uses:21 | Used by:23 |
Symbol 23 MovieClip | Uses:22 | Used by:Timeline |
Symbol 24 Bitmap | Used by:25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
Symbol 25 Graphic | Uses:24 | Used by:48 |
Symbol 26 Graphic | Uses:24 | Used by:48 |
Symbol 27 Graphic | Uses:24 | Used by:48 |
Symbol 28 Graphic | Uses:24 | Used by:48 |
Symbol 29 Graphic | Uses:24 | Used by:48 |
Symbol 30 Graphic | Uses:24 | Used by:48 |
Symbol 31 Graphic | Uses:24 | Used by:48 |
Symbol 32 Graphic | Uses:24 | Used by:48 |
Symbol 33 Graphic | Uses:24 | Used by:48 |
Symbol 34 Graphic | Uses:24 | Used by:48 |
Symbol 35 Graphic | Uses:24 | Used by:48 |
Symbol 36 Graphic | Uses:24 | Used by:48 |
Symbol 37 Graphic | Uses:24 | Used by:48 |
Symbol 38 Graphic | Uses:24 | Used by:48 |
Symbol 39 Graphic | Uses:24 | Used by:48 |
Symbol 40 Graphic | Uses:24 | Used by:48 |
Symbol 41 Graphic | Uses:24 | Used by:48 |
Symbol 42 Graphic | Uses:24 | Used by:48 |
Symbol 43 Graphic | Uses:24 | Used by:48 |
Symbol 44 Graphic | Uses:24 | Used by:48 |
Symbol 45 Graphic | Uses:24 | Used by:48 |
Symbol 46 Graphic | Uses:24 | Used by:48 |
Symbol 47 Graphic | Uses:24 | Used by:48 |
Symbol 48 MovieClip | Uses:25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | Used by:Timeline |
Symbol 49 Graphic | Used by:50 | |
Symbol 50 MovieClip | Uses:49 | Used by:Timeline |
Symbol 51 Graphic | Used by:55 | |
Symbol 52 EditableText | Uses:3 | Used by:55 |
Symbol 53 Graphic | Used by:55 | |
Symbol 54 EditableText | Uses:3 | Used by:55 |
Symbol 55 Button | Uses:51 52 53 54 | Used by:Timeline |
Symbol 56 Graphic | Used by:57 | |
Symbol 57 MovieClip | Uses:56 | Used by:Timeline |
Symbol 58 Graphic | Used by:59 | |
Symbol 59 MovieClip | Uses:58 | Used by:Timeline |
Symbol 60 EditableText | Uses:3 | Used by:Timeline |
Symbol 61 EditableText | Uses:3 | Used by:Timeline |
Symbol 62 EditableText | Uses:3 | Used by:Timeline |
Instance Names
"btnRules" | Frame 1 | Symbol 6 Button |
"btnStart" | Frame 1 | Symbol 10 Button |
"btnMusic" | Frame 1 | Symbol 15 Button |
"btnReturnToMenu" | Frame 2 | Symbol 18 Button |
"mc_hinder" | Frame 2 | Symbol 23 MovieClip |
"mc_star" | Frame 2 | Symbol 48 MovieClip |
"mc_ball" | Frame 2 | Symbol 50 MovieClip |
"btnReset" | Frame 3 | Symbol 55 Button |
"wall_right" | Frame 3 | Symbol 57 MovieClip |
"wall_left" | Frame 3 | Symbol 57 MovieClip |
"wall_bottom" | Frame 3 | Symbol 59 MovieClip |
"wall_top" | Frame 3 | Symbol 59 MovieClip |
"lblHealthRanOut" | Frame 3 | Symbol 60 EditableText |
"lblHealth" | Frame 3 | Symbol 61 EditableText |
"lblPoints" | Frame 3 | Symbol 62 EditableText |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS3. |
|