home *** CD-ROM | disk | FTP | other *** search
- _root.game.onEnterFrame = _global.cameraLogic;
- _root.game.player.onEnterFrame = _global.playerLogic;
- _root.game.highway.onEnterFrame = _global.highwayLogic;
- _root.game.combo.onEnterFrame = _global.comboLogic;
- for(n in _root.game)
- {
- if(n.substring(0,6) == "kabuki")
- {
- _root.game[n].onEnterFrame = _global.kabukiAI;
- _root.game[n].speed = 11;
- _root.game[n].dir = -1;
- _root.game[n].state = "idle";
- _root.game[n].jumping = false;
- _root.game[n].dy = 24;
- _root.game[n].ground = _root.game[n]._y;
- _root.game[n].xMax = 800;
- _root.game[n].xMin = 300;
- _root.game[n].health = 300;
- _root.game[n].strength = 12;
- _root.game[n].range = 0;
- _root.game[n].enemyHeight = 50;
- _root.game[n].enemyWidth = 50;
- _root.game[n].attackCount = 0;
- _root.game[n].fallCount = 0;
- }
- if(n.substring(0,7) == "item_br")
- {
- _root.game[n].onEnterFrame = _global.itemLogic;
- }
- }
- _root.game.kabuki2.onEnterFrame = function()
- {
- this.gotoAndStop("idle");
- _root.game.kabuki2._xscale = -100;
- };
- _root.game.tracker.onEnterFrame = function()
- {
- if(_root.game.kabuki1.health < 150 && _root.game.kabuki2.state == "idle")
- {
- _root.game.kabuki2._xscale = 100;
- _root.game.kabuki2.onEnterFrame = _global.kabukiAI;
- _root.game.kabuki2.speed = 17;
- _root.game.kabuki2.dir = -1;
- _root.game.kabuki2.state = "idle";
- _root.game.kabuki2.jumping = false;
- _root.game.kabuki2.dy = 24;
- _root.game.kabuki2.ground = _root.game.kabuki2._y;
- _root.game.kabuki2.xMax = 800;
- _root.game.kabuki2.xMin = 300;
- _root.game.kabuki2.health = 300;
- _root.game.kabuki2.strength = 12;
- _root.game.kabuki2.range = 0;
- _root.game.kabuki2.enemyHeight = 50;
- _root.game.kabuki2.enemyWidth = 50;
- _root.game.kabuki2.attackCount = 0;
- _root.game.kabuki2.fallCount = 0;
- }
- if(_root.game.kabuki1.health < 1 && _root.game.kabuki2.health < 1 && !done)
- {
- done = true;
- _root.gotoNext = "card:mansion";
- _root.fadeout.play();
- }
- };
- stop();
- _root.gravity = 5;
- _root.globalGravity = 5;
- _root.FPS = 0;
- _root.fpsSet = false;
- _root.frameCount = 0;
- _root.gotoLast = "level3b";
- _root.camDelay = 0;
- _root.camHeight = -10;
- _root.camJump = 3;
- _root.camMin = 340;
- _root.camMax = 600;
- _root.camZoom = 100;
- _root.camOffset = 0;
- _root.playerDx = 0;
- _root.playerDy = 3;
- _root.playerDir = 1;
- _root.playerSpeed = 19;
- _root.playerWalkSpeed = 8;
- _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;
-