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

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

The_Trololo_Game.swf

This is the info page for
Flash #102094

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


Text
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_fla
Section 2
//myThemeSong (myThemeSong) package { import flash.media.*; public dynamic class myThemeSong extends Sound { } }//package

Library Items

Symbol 1 Sound {myThemeSong}
Symbol 2 GraphicUsed by:6 18
Symbol 3 FontUsed by:4 8 16 17 19 20 52 54 60 61 62
Symbol 4 TextUses:3Used by:6
Symbol 5 GraphicUsed by:6 18
Symbol 6 ButtonUses:2 4 5Used by:Timeline
Symbol 7 GraphicUsed by:10
Symbol 8 TextUses:3Used by:10
Symbol 9 GraphicUsed by:10
Symbol 10 ButtonUses:7 8 9Used by:Timeline
Symbol 11 GraphicUsed by:15
Symbol 12 GraphicUsed by:15
Symbol 13 GraphicUsed by:15
Symbol 14 GraphicUsed by:15
Symbol 15 ButtonUses:11 12 13 14Used by:Timeline
Symbol 16 TextUses:3Used by:Timeline
Symbol 17 TextUses:3Used by:18
Symbol 18 ButtonUses:2 17 5Used by:Timeline
Symbol 19 TextUses:3Used by:Timeline
Symbol 20 TextUses:3Used by:Timeline
Symbol 21 BitmapUsed by:22
Symbol 22 GraphicUses:21Used by:23
Symbol 23 MovieClipUses:22Used by:Timeline
Symbol 24 BitmapUsed 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 GraphicUses:24Used by:48
Symbol 26 GraphicUses:24Used by:48
Symbol 27 GraphicUses:24Used by:48
Symbol 28 GraphicUses:24Used by:48
Symbol 29 GraphicUses:24Used by:48
Symbol 30 GraphicUses:24Used by:48
Symbol 31 GraphicUses:24Used by:48
Symbol 32 GraphicUses:24Used by:48
Symbol 33 GraphicUses:24Used by:48
Symbol 34 GraphicUses:24Used by:48
Symbol 35 GraphicUses:24Used by:48
Symbol 36 GraphicUses:24Used by:48
Symbol 37 GraphicUses:24Used by:48
Symbol 38 GraphicUses:24Used by:48
Symbol 39 GraphicUses:24Used by:48
Symbol 40 GraphicUses:24Used by:48
Symbol 41 GraphicUses:24Used by:48
Symbol 42 GraphicUses:24Used by:48
Symbol 43 GraphicUses:24Used by:48
Symbol 44 GraphicUses:24Used by:48
Symbol 45 GraphicUses:24Used by:48
Symbol 46 GraphicUses:24Used by:48
Symbol 47 GraphicUses:24Used by:48
Symbol 48 MovieClipUses:25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47Used by:Timeline
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:Timeline
Symbol 51 GraphicUsed by:55
Symbol 52 EditableTextUses:3Used by:55
Symbol 53 GraphicUsed by:55
Symbol 54 EditableTextUses:3Used by:55
Symbol 55 ButtonUses:51 52 53 54Used by:Timeline
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClipUses:56Used by:Timeline
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClipUses:58Used by:Timeline
Symbol 60 EditableTextUses:3Used by:Timeline
Symbol 61 EditableTextUses:3Used by:Timeline
Symbol 62 EditableTextUses:3Used by:Timeline

Instance Names

"btnRules"Frame 1Symbol 6 Button
"btnStart"Frame 1Symbol 10 Button
"btnMusic"Frame 1Symbol 15 Button
"btnReturnToMenu"Frame 2Symbol 18 Button
"mc_hinder"Frame 2Symbol 23 MovieClip
"mc_star"Frame 2Symbol 48 MovieClip
"mc_ball"Frame 2Symbol 50 MovieClip
"btnReset"Frame 3Symbol 55 Button
"wall_right"Frame 3Symbol 57 MovieClip
"wall_left"Frame 3Symbol 57 MovieClip
"wall_bottom"Frame 3Symbol 59 MovieClip
"wall_top"Frame 3Symbol 59 MovieClip
"lblHealthRanOut"Frame 3Symbol 60 EditableText
"lblHealth"Frame 3Symbol 61 EditableText
"lblPoints"Frame 3Symbol 62 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.




http://swfchan.com/21/102094/info.shtml
Created: 9/11 -2023 22:59:15 Last modified: 9/11 -2023 22:59:15 Server time: 20/04 -2024 07:34:45