headsupdisplay.js 630 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. function HeadsUpDisplay(game, camera) {
  2. var ui = this;
  3. this.canvas = null;
  4. this.hudCanvas = null;
  5. this.hudContext = null;
  6. this.init = function(canvas) {
  7. this.canvas = canvas;
  8. };
  9. this.handleResize = function(canvas) {
  10. }
  11. this.update = function(delta) {
  12. }
  13. this.draw = function(context) {
  14. }
  15. this.mouseMove = function(canvas, x, y) {
  16. }
  17. this.touchMove = function(canvas, x, y) {
  18. }
  19. this.mouseDown = function(canvas, button, x, y) {
  20. }
  21. this.mouseUp = function(canvas, button, x, y) {
  22. }
  23. this.touchStart = function(canvas, x, y) {
  24. };
  25. this.touchEnd = function(canvas, x, y) {
  26. };
  27. };