trinBasic.js 520 B

123456789101112131415161718192021222324
  1. function TrinBasic() {
  2. this.active = true;
  3. this.exists = true;
  4. this.visible = true;
  5. this.parent = null;
  6. this.alive = true;
  7. }
  8. TrinBasic.prototype.destroy = function() {
  9. };
  10. TrinBasic.prototype.update = function() {
  11. };
  12. TrinBasic.prototype.draw = function(context) {
  13. };
  14. TrinBasic.prototype.kill = function() {
  15. this.exists = false;
  16. this.alive = false;
  17. };
  18. TrinBasic.prototype.revive = function() {
  19. this.exists = true;
  20. this.alive = true;
  21. };
  22. TrinBasic.prototype.hitTest = function(x, y) {
  23. };