@@ -32,11 +32,11 @@ class Shape2D extends Object2D
{
case SHAPES.RECT:
rectMode(this.shapeMode);
- rect(this.position.x, this.position.y, this.shape.w, this.shape.h);
+ rect(0, 0, this.shape.w, this.shape.h);
break;
case SHAPES.ELLIPSE:
ellipseMode(this.shapeMode);
- ellipse(this.position.x, this.position.y, this.shape.rx, this.shape.ry);
+ ellipse(0, 0, this.shape.rx, this.shape.ry);
}
this._draw(delta);
@@ -14,7 +14,7 @@ class Sprite2D extends Object2D
rotate(this.rotationDegrees);
scale(this.scale.x, this.scale.y);
- image(this.P5Image, this.position.x, this.position.y, this.P5Image.width, this.P5Image.height);
+ image(this.P5Image, 0, 0, this.P5Image.width, this.P5Image.height);