[oden] Circles work

This commit is contained in:
John Doty 2023-08-25 15:32:35 -07:00
parent 26a3939012
commit 020bb8f124
7 changed files with 83 additions and 51 deletions

View file

@ -1,7 +1,7 @@
import { load_texture } from "./assets";
import { btn, Button } from "./input";
import { Vec2, new_v2, vadd, vsub, vnorm, vmul } from "./vector";
import { spr, use_texture, Texture } from "./graphics";
import { spr, circle, use_texture, Texture } from "./graphics";
import { has_collision, Level } from "./level";
export interface ActorProps {
@ -191,6 +191,7 @@ export class Robo extends Actor {
const frame = (anim.start + ((clock / anim.speed) % anim.length)) >> 0;
spr(x, y, w, h, frame * w, 0, 32, 32);
// circle(this.props.position.x, this.props.position.y, 16, 1);
}
}
}