Commit 2d272ea3 authored by 邱旭's avatar 邱旭

06.面向对象

parent 652bed3a
......@@ -35,7 +35,6 @@ class GameObject {
this.id = id;
this.dom = document.getElementById(id); // 在构造函数中绑定dom元素
this.dom.style.position = "absolute";
this.dom.style.transformOrigin = "center";
}
/**
......
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