SuperStar.js 507 B

123456789101112131415
  1. var Star = require("components/Star");
  2. var __extends = (this && this.__extends) || function (d, b) {for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];function __() { this.constructor = d; };__.prototype = b.prototype;d.prototype = new __();};
  3. "atomic component";
  4. var SuperStar = (function(_super) {
  5. __extends(SuperStar, _super);
  6. function SuperStar() {
  7. Star.call(this);
  8. };
  9. SuperStar.prototype.start = function() {
  10. this.node.scale2D = [2,2];
  11. };
  12. ;
  13. return SuperStar;
  14. })(Star);
  15. module.exports = SuperStar;