[oden] Finish colors and cleanup

This commit is contained in:
John Doty 2023-08-26 11:19:38 -07:00
parent 2322493efd
commit ab91fcfc53
3 changed files with 33 additions and 5 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, circle, use_texture, Texture } from "./graphics";
import { spr, use_texture, Texture } from "./graphics";
import { has_collision, Level } from "./level";
export interface ActorProps {
@ -191,7 +191,10 @@ 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);
// color(0, 0, 0, 0);
// stroke(0, 0, 0, 1);
// circle(this.props.position.x, this.props.position.y, 8, 1);
}
}
}