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.
33 lines
396 B
33 lines
396 B
'use strict';
|
|
|
|
function keyPressed(){
|
|
|
|
}
|
|
|
|
function keyReleased(){
|
|
|
|
}
|
|
|
|
function mouseMoved(){
|
|
|
|
}
|
|
|
|
function mouseDragged(){
|
|
|
|
}
|
|
|
|
function mousePressed(){
|
|
if (game)
|
|
if (!game.winId)
|
|
game.onMouseDown();
|
|
}
|
|
|
|
function mouseReleased(){
|
|
|
|
}
|
|
|
|
window.onresize = () => {
|
|
let w = $('#canvas-holder').width();
|
|
let h = $('#canvas-holder').height();
|
|
resizeCanvas(w, h);
|
|
} |