Section 1 (260 B)
//jump_21 (game_fla.jump_21)
package game_fla {
import flash.display.*;
public dynamic class jump_21 extends MovieClip {
public function jump_21(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndPlay(12);
}
}
}//package game_fla
Section 2 (280 B)
//jumppower_23 (game_fla.jumppower_23)
package game_fla {
import flash.display.*;
public dynamic class jumppower_23 extends MovieClip {
public function jumppower_23(){
addFrameScript(27, frame28);
}
function frame28(){
gotoAndPlay(16);
}
}
}//package game_fla
Section 3 (300 B)
//jumppowerstill_25 (game_fla.jumppowerstill_25)
package game_fla {
import flash.display.*;
public dynamic class jumppowerstill_25 extends MovieClip {
public function jumppowerstill_25(){
addFrameScript(27, frame28);
}
function frame28(){
gotoAndPlay(16);
}
}
}//package game_fla
Section 4 (280 B)
//jumpstill_22 (game_fla.jumpstill_22)
package game_fla {
import flash.display.*;
public dynamic class jumpstill_22 extends MovieClip {
public function jumpstill_22(){
addFrameScript(27, frame28);
}
function frame28(){
gotoAndPlay(12);
}
}
}//package game_fla
Section 5 (8.86 KiB) ● ●
//MainTimeline (game_fla.MainTimeline)
package game_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.filters.*;
public dynamic class MainTimeline extends MovieClip {
public var BButton;
public var hills2:MovieClip;
public var hills3:MovieClip;
public var RButton;
public var hills1:MovieClip;
public var keyIsDown:Array;
public var DPadLeft;
public var i;
public var PlayerMY:int;
public var PlayerMX:int;
public var PlayerJumpFrames:int;
public var LButton;
public var DPadUp;
public var AButton;
public var YButton;
public var PlayerFrame:String;
public var DPadDown;
public var init:int;
public var PJumpPower:int;
public var RunAccel:int;
public var Player1:MovieClip;
public var PlayerAirborne:Boolean;
public var console:TextField;
public var Drag:int;
public var PlayerJumpPower:int;
public var PlayerX:int;
public var PlayerY:int;
public var JumpPower:int;
public var PJumpDelay:int;
public var ground:MovieClip;
public var PRunMaxVel:int;
public var PRunAccel:int;
public var XButton;
public var DPadRight;
public var CameraMX:int;
public var CameraX:int;
public var CameraY:int;
public var CameraMY:int;
public var PlayerDir:int;
public var PlayerDrag:int;
public var RunMaxVel:int;
public var JumpDelay:int;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function handleKeyUp(_arg1:KeyboardEvent){
keyIsDown[_arg1.keyCode] = false;
}
public function handleKeyDown(_arg1:KeyboardEvent){
keyIsDown[_arg1.keyCode] = true;
}
function frame1(){
DPadLeft = 37;
DPadRight = 39;
DPadUp = 38;
DPadDown = 40;
AButton = 90;
BButton = 58;
XButton = 56;
YButton = 43;
LButton = 15;
RButton = 16;
RunMaxVel = 12;
RunAccel = 4;
PRunMaxVel = 63;
PRunAccel = 12;
JumpPower = 16;
JumpDelay = 2;
PJumpPower = 34;
PJumpDelay = 3;
Drag = 5;
if (init != 1){
keyIsDown = new Array(0x0100);
i = 0;
while (i < 0x0100) {
keyIsDown[i] = false;
i++;
};
stage.addEventListener(Event.ENTER_FRAME, gameLoop);
stage.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, handleKeyUp);
init = 1;
CameraX = 0;
PlayerJumpFrames = 0;
PlayerAirborne = false;
PlayerFrame = "standright";
Player1.gotoAndStop("standright");
PlayerDir = 1;
};
}
public function gameLoop(_arg1){
var _local2:BlurFilter;
var _local3:Array;
i = 0;
if (keyIsDown[DPadLeft] == true){
i--;
};
if (keyIsDown[DPadRight] == true){
i++;
};
if (PlayerDir != (i * 2)){
PlayerDir = (PlayerDir + i);
if (PlayerDir == 0){
PlayerDir = (PlayerDir + i);
};
};
if ((((PlayerDir < 0)) && ((i == 0)))){
PlayerDir = -1;
} else {
if ((((PlayerDir > 0)) && ((i == 0)))){
PlayerDir = 1;
};
};
if (keyIsDown[AButton] == true){
if (PlayerAirborne == false){
PlayerAirborne = true;
if (keyIsDown[RButton] == true){
if (PlayerDir > 0){
if (Math.abs(PlayerMX) > 5){
if (PlayerFrame != "pjumpright"){
PlayerFrame = "pjumpright";
Player1.gotoAndStop("pjumpright");
};
} else {
if (PlayerFrame != "pjumprightstill"){
PlayerFrame = "pjumprightstill";
Player1.gotoAndStop("pjumprightstill");
};
};
} else {
if (Math.abs(PlayerMX) > 5){
if (PlayerFrame != "pjumpleft"){
PlayerFrame = "pjumpleft";
Player1.gotoAndStop("pjumpleft");
};
} else {
if (PlayerFrame != "pjumpleftstill"){
PlayerFrame = "pjumpleftstill";
Player1.gotoAndStop("pjumpleftstill");
};
};
};
PlayerJumpFrames = PJumpDelay;
PlayerJumpPower = PJumpPower;
} else {
if (PlayerDir > 0){
if (Math.abs(PlayerMX) > 5){
if (PlayerFrame != "jumpright"){
PlayerFrame = "jumpright";
Player1.gotoAndStop("jumpright");
};
} else {
if (PlayerFrame != "jumprightstill"){
PlayerFrame = "jumprightstill";
Player1.gotoAndStop("jumprightstill");
};
};
} else {
if (Math.abs(PlayerMX) > 5){
if (PlayerFrame != "jumpleft"){
PlayerFrame = "jumpleft";
Player1.gotoAndStop("jumpleft");
};
} else {
if (PlayerFrame != "jumpleftstill"){
PlayerFrame = "jumpleftstill";
Player1.gotoAndStop("jumpleftstill");
};
};
};
PlayerJumpFrames = JumpDelay;
PlayerJumpPower = JumpPower;
};
};
};
if (PlayerAirborne == true){
if (PlayerJumpFrames == -1){
if ((((((PlayerY <= 0)) && ((PlayerMY <= 0)))) && ((PlayerAirborne == true)))){
PlayerY = 0;
PlayerMY = 0;
PlayerAirborne = false;
} else {
PlayerMY = (PlayerMY - 2);
};
} else {
if (PlayerJumpFrames > 0){
PlayerJumpFrames--;
} else {
PlayerJumpFrames--;
PlayerMY = (PlayerMY + PlayerJumpPower);
};
};
if (PlayerDrag > Drag){
PlayerDrag = 0;
PlayerMX = (PlayerMX * 0.95);
} else {
PlayerDrag++;
};
};
if (PlayerAirborne == false){
if ((((PlayerDir > 1)) && ((PlayerMX >= 0)))){
PlayerDrag = 0;
if (keyIsDown[RButton] == true){
if (keyIsDown[AButton] == false){
if (PlayerMX < PRunMaxVel){
PlayerMX = (PlayerMX + PRunAccel);
} else {
PlayerMX = (PlayerMX - ((PlayerMX - PRunMaxVel) / 2));
};
};
if (PlayerFrame != "prunright"){
PlayerFrame = "prunright";
Player1.gotoAndStop("prunright");
};
} else {
if (keyIsDown[AButton] == false){
if (PlayerMX < RunMaxVel){
PlayerMX = (PlayerMX + RunAccel);
} else {
PlayerMX = (PlayerMX - ((PlayerMX - RunMaxVel) / 2));
};
};
if (PlayerFrame != "runright"){
PlayerFrame = "runright";
Player1.gotoAndStop("runright");
};
};
} else {
if ((((PlayerDir < -1)) && ((PlayerMX <= 0)))){
if (keyIsDown[RButton] == true){
if (keyIsDown[AButton] == false){
if (PlayerMX > -(PRunMaxVel)){
PlayerMX = (PlayerMX - PRunAccel);
} else {
PlayerMX = (PlayerMX - ((PlayerMX + PRunMaxVel) / 2));
};
};
if (PlayerFrame != "prunleft"){
PlayerFrame = "prunleft";
Player1.gotoAndStop("prunleft");
};
} else {
if (keyIsDown[AButton] == false){
if (PlayerMX > -(RunMaxVel)){
PlayerMX = (PlayerMX - RunAccel);
} else {
PlayerMX = (PlayerMX - ((PlayerMX + RunMaxVel) / 2));
};
};
if (PlayerFrame != "runleft"){
PlayerFrame = "runleft";
Player1.gotoAndStop("runleft");
};
};
} else {
if (PlayerDir > 0){
if (PlayerMX < 0){
PlayerMX = (PlayerMX / 1.75);
} else {
if (PlayerMX != 0){
PlayerMX = (PlayerMX / 1.33);
if (PlayerFrame != "slideright"){
PlayerFrame = "slideright";
Player1.gotoAndStop("slideright");
};
} else {
if (PlayerFrame != "standright"){
PlayerFrame = "standright";
Player1.gotoAndStop("standright");
};
};
};
} else {
if (PlayerDir < 0){
if (PlayerMX > 0){
PlayerMX = (PlayerMX / 1.75);
} else {
if (PlayerMX != 0){
PlayerMX = (PlayerMX / 1.33);
if (PlayerFrame != "slideleft"){
PlayerFrame = "slideleft";
Player1.gotoAndStop("slideleft");
};
} else {
if (PlayerFrame != "standleft"){
PlayerFrame = "standleft";
Player1.gotoAndStop("standleft");
};
};
};
} else {
PlayerMX = 0;
};
};
};
};
};
PlayerX = (PlayerX + PlayerMX);
PlayerY = (PlayerY + PlayerMY);
CameraMX = ((PlayerX - CameraX) / 2);
CameraX = (CameraX + CameraMX);
Player1.x = ((PlayerX - CameraX) + 128);
Player1.y = ((-(PlayerY) + CameraY) + 416);
if (CameraX < 0){
ground.x = (0 - (CameraX % 0x0100));
hills1.x = (0 - ((CameraX / 48) % 0x0100));
hills2.x = (0 - ((CameraX / 40) % 0x0100));
hills3.x = (0 - ((CameraX / 32) % 0x0100));
} else {
ground.x = (0x0100 - (CameraX % 0x0100));
hills1.x = (0x0100 - ((CameraX / 48) % 0x0100));
hills2.x = (0x0100 - ((CameraX / 40) % 0x0100));
hills3.x = (0x0100 - ((CameraX / 32) % 0x0100));
};
_local2 = new BlurFilter(Math.abs((CameraMX / 4)), 0, 3);
_local3 = new Array();
_local3.push(_local2);
ground.filters = _local3;
console.text = "Controls: Left, Right, Shift, Z";
}
}
}//package game_fla
Section 6 (275 B)
//runpower_13 (game_fla.runpower_13)
package game_fla {
import flash.display.*;
public dynamic class runpower_13 extends MovieClip {
public function runpower_13(){
addFrameScript(12, frame13);
}
function frame13(){
gotoAndPlay(5);
}
}
}//package game_fla
Section 7 (261 B)
//slide_12 (game_fla.slide_12)
package game_fla {
import flash.display.*;
public dynamic class slide_12 extends MovieClip {
public function slide_12(){
addFrameScript(9, frame10);
}
function frame10(){
gotoAndPlay(6);
}
}
}//package game_fla