Commit e506c4d0 authored by Master Q's avatar Master Q

游戏 第一版完善

parent 779887cb
...@@ -68,7 +68,11 @@ ...@@ -68,7 +68,11 @@
var canvas = document.getElementById("canvas"); var canvas = document.getElementById("canvas");
canvas.width = document.body.clientWidth * (window.devicePixelRatio || 1) canvas.width = document.body.clientWidth * (window.devicePixelRatio || 1)
canvas.height = document.body.clientHeight * (window.devicePixelRatio || 1) canvas.height = document.body.clientHeight * (window.devicePixelRatio || 1)
var main = new Main(canvas); var main = new Main(canvas, {
isNewGuy: true,
debug: true,
musicSwitchDefault: false
});
var mouseEvent = main.stage.onMouseEvent.bind(main.stage); var mouseEvent = main.stage.onMouseEvent.bind(main.stage);
canvas.addEventListener("touchstart", mouseEvent, false); canvas.addEventListener("touchstart", mouseEvent, false);
canvas.addEventListener('touchmove', mouseEvent, false); canvas.addEventListener('touchmove', mouseEvent, false);
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"success": true
}
\ No newline at end of file
...@@ -11,7 +11,6 @@ export class GPool { ...@@ -11,7 +11,6 @@ export class GPool {
*/ */
public static takeOut<T>(name: string): T { public static takeOut<T>(name: string): T {
if (this.pool[name] && this.pool[name].length) { if (this.pool[name] && this.pool[name].length) {
// console.log('从对象池中去')
return this.pool[name].shift(); return this.pool[name].shift();
} }
return null; return null;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment