|
|
(107 intermediate revisions not shown) |
Line 1: |
Line 1: |
| {{AUC_Turkey}} | | {{AUC_Turkey}} |
- |
| |
- | <html>
| |
- | <head>
| |
- | <style>
| |
- | .source
| |
- | {
| |
- | font: normal 11px monospace;
| |
- | color: black;
| |
- | }
| |
- | </style>
| |
- | </head>
| |
- | <body>
| |
- | <div style="margin:20px; margin-top:5px">
| |
- | <div class="smallfont" style="margin-bottom:2px">Here's the <b>source code</b> of the game if you're interested:<input type="button" value="Click" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.font='monospace 10 px black;';this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display=''} else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none';}">
| |
- | </div>
| |
- | <div class="source" style="margin: 0px; padding: 6px; border: 1px inset;">
| |
- | <div style="display: none;">
| |
- | //platform
| |
- |
| |
- | var platform:MovieClip = _root.createEmptyMovieClip("platform", _root.getNextHighestDepth());
| |
- |
| |
- | var pID:Number = 20;
| |
- |
| |
- | var pLeft:Number = 0;
| |
- |
| |
- | var pRight:Number = pID * 40;
| |
- |
| |
- | var pFall:Number = 57;
| |
- |
| |
- | var pInc:Number = 3;
| |
- |
| |
- | //speed
| |
- |
| |
- | var speedTimer:Number = 0;
| |
- |
| |
- | var speedWait:Number = 48;
| |
- |
| |
- | var speedInc:Number = .2;
| |
- |
| |
- | var speed:Number = 7;
| |
- |
| |
- | var minSpeed:Number = 5;
| |
- |
| |
- | //jump
| |
- |
| |
- | var fallSpeed:Number = 0;
| |
- |
| |
- | var jumpSpeed:Number = 10;
| |
- |
| |
- | var floor:Number = 250;
| |
- |
| |
- | var jump:Number = 0;
| |
- |
| |
- | var doubleJump:Boolean = false;
| |
- |
| |
- | var gravity:Number = .5;
| |
- |
| |
- | var plat_arr:Array = [pLeft, 250, pRight];
| |
- |
| |
- | var signal:Boolean = true;
| |
- |
| |
- | //animation
| |
- |
| |
- | var animFrame:Number = 0;
| |
- |
| |
- | igeman_mc.stop();
| |
- |
| |
- | igeman_mc.run.stop();
| |
- |
| |
- | //fps
| |
- |
| |
- | var fps:Number = 48;
| |
- |
| |
- | var frames:Number = 0;
| |
- |
| |
- | var startTime:Number = 0;
| |
- |
| |
- | //fire
| |
- |
| |
- | var nextFire:Number = random(5) + 20;
| |
- |
| |
- | //ice
| |
- |
| |
- | var ices:MovieClip = _root.createEmptyMovieClip("ices", _root.getNextHighestDepth());
| |
- |
| |
- | var iceUse:Number = 1;
| |
- |
| |
- | var iceGiven:Number = 1;
| |
- |
| |
- | var iceReady:Boolean = true;
| |
- |
| |
- | var iceCooldown:Number = 0;
| |
- |
| |
- | var iceFloor:Number = 0;
| |
- |
| |
- | var iceRight:Number = 0;
| |
- |
| |
- | var iceWait:Number = 120;
| |
- |
| |
- | //music
| |
- |
| |
- | var doMute:Boolean = true;
| |
- |
| |
- | var firstMute:Number = mute_mc.getDepth();
| |
- |
| |
- | mute_mc.swapDepths(_root.getNextHighestDepth());
| |
- |
| |
- | </div>
| |
- | </div>
| |
- | </div>
| |
- | </body>
| |
- | </html>
| |
- |
| |
- | <forum_subtle/>
| |