old_contents: /*
   *  player.js
   *  2014/06/04
   *  @auther minimo  
   *  This Program is MIT license.
   */
  
  //プレイヤーキャラクター管理クラス
  tm.define("kumabang.Player", {
      superClass: "tm.display.AnimationSprite",
  
      init: function() {
          //親クラスの初期化
          this.superInit(player, 32, 32);
      },
      update: function() {
          //移動してたらアニメーションする        
          if (this.bx != this.x || this.by != this.y) {
              if (this.nowAnimation !== "move") this.gotoAndPlay("move");
              this.nowAnimation = "move";
          } else {
              this.nowAnimation = "stop";
              this.gotoAndPlay("stop");
          }
  
          //左右の向き
          if (this.bx != this.x) {
              if (this.bx > this.x) {
                  this.setScale(1, 1);
              } else {
                  this.setScale(-1, 1);
              }
          }
          this.bx = this.x;
          this.by = this.y;
          this.time++;
      },
  });
  
  
new_contents: /*
   *  player.js
   *  2014/06/04
   *  @auther minimo  
   *  This Program is MIT license.
   */
  
  //プレイヤーキャラクター管理クラス
  tm.define("kumabang.Player", {
      superClass: "tm.display.AnimationSprite",
  
      init: function() {
          //親クラスの初期化
          this.superInit(player, 32, 32);
          this.origin.y = 0.9;
      },
      update: function() {
          //移動してたらアニメーションする        
          if (this.bx != this.x || this.by != this.y) {
              if (this.nowAnimation !== "move") this.gotoAndPlay("move");
              this.nowAnimation = "move";
          } else {
              this.nowAnimation = "stop";
              this.gotoAndPlay("stop");
          }
  
          //左右の向き
          if (this.bx != this.x) {
              if (this.bx > this.x) {
                  this.setScale(1, 1);
              } else {
                  this.setScale(-1, 1);
              }
          }
          this.bx = this.x;
          this.by = this.y;
          this.time++;
      },
  });
  
  
subject: update player