code: function() {
        // load a level
          me.levelDirector.loadLevel("map1");
  
          // reset the score
          game.data.score = 0;
  
          // add our HUD to the game world
          if (typeof this.HUD === "undefined") {
              this.HUD = new game.HUD.UIContainer();
          }
          me.game.world.addChild(this.HUD);
  
          // display if debugPanel is enabled or on mobile
          if ((me.plugins.debugPanel && me.plugins.debugPanel.panel.visible) || me.device.touch) {
              if (typeof this.virtualJoypad === "undefined") {
                  this.virtualJoypad = new game.HUD.VirtualJoypad();
              }
              me.game.world.addChild(this.virtualJoypad);
          }
  
          // play some music
          me.audio.playTrack("dst-gameforest");
      }
docs: action to perform on state change