wosn do los

This commit is contained in:
dhain 2022-11-29 11:39:32 +01:00
parent 04ef8a872d
commit 43390fe7ce
5 changed files with 32 additions and 10 deletions

View file

@ -35,7 +35,7 @@ abstract class Entity {
this._fill = fill;
}
public abstract update();
public abstract update(): void;
public draw() {
fill(this._fill);
rect(this.position.x, this.position.y, this.width, this.height);