{"size": 970, "ext": "js", "max_stars_repo_path": "rush/js/rush-coin.js", "max_stars_repo_name": "CourseMaterial/git-course-example-HTML5-games", "max_stars_repo_stars_event_min_datetime": "2015-01-23T13:24:02.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-02T11:23:40.000Z", "max_issues_repo_path": "rush/js/rush-coin.js", "max_issues_repo_name": "CourseMaterial/git-course-example-HTML5-games", "max_issues_repo_issues_event_min_datetime": "2017-03-14T12:46:09.000Z", "max_issues_repo_issues_event_max_datetime": "2017-03-14T12:46:09.000Z", "max_forks_repo_path": "rush/js/rush-coin.js", "max_forks_repo_name": "CourseMaterial/git-course-example-HTML5-games", "max_forks_repo_forks_event_min_datetime": "2015-02-23T15:46:38.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-31T15:40:41.000Z"}
{"max_stars_count": 84, "max_issues_count": 1, "max_forks_count": 72, "avg_line_length": 27.7142857143, "max_line_length": 212, "alphanum_fraction": 0.618556701}
var rush = rush || {};

rush.Coin = (function(){
  function Coin() {
    this.initialize();
  }
  var p = Coin.prototype = new rush.GameObject();

  // instance variables
  p.category = 'coin';

  p.width = 10;
  p.height = 10;

  // put registration point to the bottom center.
  p.regX = p.width/2;
  p.regY = p.height;

  p.GameObject_initialize = p.initialize;
  p.initialize = function() {
    this.GameObject_initialize();


    // copy from zoe exported coin.json file.
    // frame: [x, y, width, height, imageIndex, regX, regY]
    var spritesheetData = {"images": ["images/coin.png"], "frames": [[0, 0, 16, 16, 0, 0, 0], [16, 0, 16, 16, 0, 0, 0], [32, 0, 16, 16, 0, 0, 0]], "animations": {"all": {"frames": [0, 1, 2, 1, 0], frequency:10}}}
    var spritesheet = new createjs.SpriteSheet(spritesheetData);
    this.animation = new createjs.Sprite(spritesheet);
    this.animation.gotoAndPlay("all");

    this.addChild(this.animation);
  }

  return Coin;
})();