You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
660 B
27 lines
660 B
'use strict';
|
|
p.keyPressed = () => {
|
|
switch (p.keyCode) {
|
|
//Ctrl + D
|
|
case 68:
|
|
if (p.keyIsDown(17)) {
|
|
debug = !debug;
|
|
let msg = 'Debug mode turned ' + (debug ? 'ON' : 'OFF');
|
|
console.info(msg);
|
|
return false;
|
|
}
|
|
break;
|
|
}
|
|
};
|
|
p.mousePressed = () => {
|
|
game.mousePressed();
|
|
released = false;
|
|
};
|
|
p.mouseReleased = () => {
|
|
game.mouseReleased();
|
|
released = true;
|
|
};
|
|
p.windowResized = () => {
|
|
let w = $('#canvas_holder').width(), h = $('#canvas_holder').height();
|
|
p.resizeCanvas(w, h);
|
|
};
|
|
//# sourceMappingURL=events.js.map
|