Team:AUC TURKEY/Test

From 2013hs.igem.org

Revision as of 06:01, 12 June 2013 by Alihancelikcan (Talk | contribs)



Here's the source code of the game if you're interested:
//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());

<forum_subtle/>