text: var Bullet = (function () {
      function Bullet(x, y) {
          var shape = new createjs.Shape();
          shape.x = x;
          shape.y = y;
          var g = shape.graphics;
          g.beginFill('blue');
          g.drawRect(0, 0, Bullet.side_length, Bullet.side_length);
          g.endFill();
          Bullet._container.addChild(shape);
          this.duration_count = 0;
          this.shape = shape;
      }
      Bullet.init = function (stage) {
          Bullet._container = new createjs.Container();
          stage.addChild(Bullet._container);
      };
      Bullet.prototype.tick = function (event) {
          this.duration_count += event.delta;
          if (this.duration_count >= Bullet.duration) {
              return true;
          }
          return false;
      };
      Bullet.prototype.clear = function () {
          Bullet._container.removeChild(this.shape);
      };
      Bullet.prototype.getX = function () {
          return this.shape.x;
      };
      Bullet.prototype.getY = function () {
          return this.shape.y;
      };
      Bullet.duration = 700; // the duration of the bullets
      Bullet.side_length = 10; // the width/height (its the same value)
      return Bullet;
  }());
  