We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8eda756 + e5d757b commit 5937208Copy full SHA for 5937208
Engine.js
@@ -185,7 +185,7 @@ class Object {
185
}
186
187
188
- if (x >= 0 && y >= 0 && this._collides !== null)
+ if (ogx >= 0 && ogy >= 0 && this._collides !== null)
189
this._collides(this, otherObj);
190
});
191
@@ -226,13 +226,14 @@ class Object {
226
ctx.fillRect(-2, -2, 4, 4);
227
228
229
- if (this._update !== null) this._update(obj);
230
ctx.restore();
231
232
if (Engine.show.hitbox) {
233
ctx.strokeStyle = "grey";
234
ctx.strokeRect(this.x - ox, this.y - oy, w, h);
235
+
236
+ if (this._update !== null) this._update(obj);
237
238
239
set x(val) {
0 commit comments