Commit a5c8d9c9 authored by 李维's avatar 李维

Add debug log

parent 00b878e4
......@@ -1876,7 +1876,7 @@ export class PlayComponent implements OnInit, OnDestroy {
// 全局初始化入口,当资源加载完毕后执行
initSystem() {
console.log("init system")
this.g_canvasWidth = this.wrap.nativeElement.clientWidth;
this.g_canvasHeight = this.wrap.nativeElement.clientHeight;
......@@ -1895,6 +1895,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this.g_enableMapDown = true;
this.g_ctx = this.canvas.nativeElement.getContext("2d");
console.log("this.g_ctx", this.g_ctx)
this.canvas.nativeElement.width = this.g_canvasWidth;
this.canvas.nativeElement.height = this.g_canvasHeight;
window["curCtx"] = this.g_ctx;
......
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