home *** CD-ROM | disk | FTP | other *** search
- _root.game.onEnterFrame = _global.cameraLogic5;
- _root.game.player.onEnterFrame = _global.playerLogic;
- _root.game.combo.onEnterFrame = _global.comboLogic;
- _root.game.respawn.onEnterFrame = _global.respawn;
- _root.enemies = new Array();
- _root.eKills = 0;
- _root.respawned = 0;
- for(n in _root.game)
- {
- if(n.substring(0,4) == "goon")
- {
- _root.enemies.push(_root.game[n]);
- _root.game[n].onEnterFrame = _global.goonAI;
- _root.game[n].state = "idle";
- _root.game[n].health = 64;
- _root.game[n].strength = 8;
- _root.game[n].speed = 9;
- _root.game[n].dir = -1;
- _root.game[n].attackCount = 0;
- _root.game[n].fallCount = 0;
- }
- if(n.substring(0,4) == "maid")
- {
- _root.enemies.push(_root.game[n]);
- _root.game[n].onEnterFrame = _global.maidAI;
- _root.game[n].state = "idle";
- _root.game[n].whipped = true;
- _root.game[n].health = 72;
- _root.game[n].strength = 7;
- _root.game[n].speed = 12;
- _root.game[n].dir = -1;
- _root.game[n].attackCount = 0;
- _root.game[n].fallCount = 0;
- }
- if(n.substring(0,5) == "eagle")
- {
- _root.game[n].onEnterFrame = _global.birdAI;
- _root.game[n].state = "fly";
- _root.game[n].health = 20;
- _root.game[n].speed = 5;
- _root.game[n].dir = -1;
- _root.game[n].turnBack = true;
- _root.game[n].flyCount = 0;
- _root.game[n].attackCount = 0;
- }
- if(n.substring(0,7) == "item_br")
- {
- _root.game[n].onEnterFrame = _global.itemLogic;
- }
- if(n.substring(0,6) == "health")
- {
- _root.game[n].onEnterFrame = _global.lifeLogic;
- }
- if(n.substring(0,5) == "light")
- {
- _root.game[n].onEnterFrame = _global.bgLight;
- }
- }
- stop();
- _root.gravity = 5;
- _root.globalGravity = 5;
- _root.FPS = 0;
- _root.fpsSet = false;
- _root.frameCount = 0;
- _root.gotoLast = "level4a";
- _root.camDelay = 0;
- _root.camHeight = 600;
- _root.camJump = 3;
- _root.camMin = 150;
- _root.camMax = 1700;
- _root.camZoom = 100;
- _root.camOffset = 0;
- _root.playerDx = 0;
- _root.playerDy = 3;
- _root.playerDir = 1;
- _root.playerSpeed = 19;
- _root.playerWalkSpeed = 6;
- _root.playerState = "fall";
- _root.playerJumping = true;
- _root.playerAttacking = false;
- _root.playerShooting = false;
- _root.playerSwinging = false;
- _root.playerLives = 3;
- _root.playerInvincible = false;
- _root.playerStrength = 10;
- _root.playerHeight = 75;
- _root.playerWidth = 50;
- if(_root.playerHealth == undefined || _root.playerHealth <= 0)
- {
- _root.playerHealth = 100;
- }
- _root.weaponCount = 1000;
- _root.currentWeapon = "batarang";
- _root.comboMeter = false;
- _root.bgScroll = 6;
- _root.onPlatform = false;
- _root.key_z = false;
- _root.key_x = false;
- _root.key_c = false;
-