12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- function HeadsUpDisplay(game, camera) {
- var ui = this;
- this.canvas = null;
- this.hudCanvas = null;
- this.hudContext = null;
- this.init = function(canvas) {
- this.canvas = canvas;
- };
- this.handleResize = function(canvas) {
- }
- this.update = function(delta) {
- }
- this.draw = function(context) {
-
- }
- this.mouseMove = function(canvas, x, y) {
-
- }
- this.touchMove = function(canvas, x, y) {
-
- }
- this.mouseDown = function(canvas, button, x, y) {
-
- }
- this.mouseUp = function(canvas, button, x, y) {
-
- }
- this.touchStart = function(canvas, x, y) {
-
- };
- this.touchEnd = function(canvas, x, y) {
-
- };
- };
|