/pocjs/entities/BatEntity.js

http://github.com/sbober/pocjs · JavaScript · 16 lines · 12 code · 4 blank · 0 comment · 0 complexity · f0ce4ef01acd0fdf90e4d78c98c2beb6 MD5 · raw file

  1. dojo.provide("pocjs.entities.BatEntity");
  2. dojo.declare("pocjs.entities.BatEntity", pocjs.entities.EnemyEntity, {
  3. "-chains-": {constructor: "manual"},
  4. constructor: function(x, z) {
  5. this.inherited(arguments, [x, z, 4 * 8, pocjs.Art.getCol(0x82666E)]);
  6. this.x = x;
  7. this.z = z;
  8. this.health = 2;
  9. this.r = 0.3;
  10. this.flying = true;
  11. }
  12. });