getCollisionShape method
碰撞形状
Implementation
DFShape getCollisionShape() {
return DFRect(this.position.x - this.size.width / 2, this.position.y - this.size.height / 2, this.size.width,
this.size.height);
}
碰撞形状
DFShape getCollisionShape() {
return DFRect(this.position.x - this.size.width / 2, this.position.y - this.size.height / 2, this.size.width,
this.size.height);
}