home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / planetx.swf / scripts / frame_17 / DoAction_19.as < prev    next >
Encoding:
Text File  |  2006-06-13  |  1.2 KB  |  64 lines

  1. function setup()
  2. {
  3.    leftThrust = 0;
  4.    rightThrust = 0;
  5.    sideThrust = 0.7;
  6.    xMovePlayer = 0;
  7.    upKey = 38;
  8.    downKey = 40;
  9.    leftKey = 37;
  10.    rightKey = 39;
  11.    level = 1;
  12.    fuelThrustCost = 0.1;
  13.    _quality = _root.gameQuality;
  14.    var _loc3_ = new Object();
  15.    _loc3_.onMouseDown = function()
  16.    {
  17.       if(state == "playing")
  18.       {
  19.       }
  20.    };
  21.    _loc3_.onMouseUp = function()
  22.    {
  23.       if(state == "playing")
  24.       {
  25.       }
  26.    };
  27.    Mouse.addListener(_loc3_);
  28.    extralives = 0;
  29.    thrusting = 0;
  30.    _root.lives = 2;
  31.    _root.score = 0;
  32.    _global.playerState = 1;
  33.    enemyLevelStart = 1;
  34.    _global.state = "begin";
  35.    acl = 0;
  36.    _global.prot = 0;
  37.    _root.pnum = 2;
  38.    mouseTrack = 25;
  39.    gravityVar = 0.6;
  40.    playerMaxSpeed = 10;
  41.    maxDepth = landScape._height;
  42.    addThrust = 5;
  43.    gameScene = "GAME";
  44.    playmusic();
  45. }
  46. function musicon()
  47. {
  48.    this.on_off.gotoAndStop(1);
  49.    musicstate = 1;
  50.    storage.data.musicsetting = 1;
  51.    playmusic();
  52. }
  53. function musicoff()
  54. {
  55.    stopmusic();
  56.    this.on_off.gotoAndStop(2);
  57.    musicstate = 0;
  58.    storage.data.musicsetting = 0;
  59. }
  60. if(musicstate == 0)
  61. {
  62.    this.on_off.gotoAndStop(2);
  63. }
  64.