Implements doodler 0.0.3a

This commit is contained in:
Emma
2023-02-07 22:44:24 -07:00
parent f1c991bd3e
commit ae0575875f
12 changed files with 364 additions and 460 deletions

View File

@@ -1,4 +1,4 @@
import { Vector } from "../math/vector.ts";
import { Vector } from "doodler";
export class Mover {
position: Vector;
@@ -81,6 +81,9 @@ export class Mover {
}
draw() {
doodler.drawRotated(this.position, this.velocity.heading() || 0, () => {
doodler.fillCenteredRect(this.position, this.boundingBox.size.x, this.boundingBox.size.y, {fillColor: 'white'})
});
if (!this.ctx) return;
this.ctx.fillStyle = 'white'