Implements doodler 0.0.3a
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user