fix controls a little

This commit is contained in:
MeowcaTheoRange 2024-06-01 13:45:23 -05:00
parent 530256b476
commit a6e99ffa2d

View file

@ -118,6 +118,19 @@ export class KaplayMap {
} }
}); });
const size = 16;
this.kp.onDraw(() => {
this.fingers.forEach((pos) => {
this.kp.drawRect({
width: size,
height: size,
pos: pos.sub(size / 2),
color: this.kp.RED,
fixed: true,
});
});
});
this.kp.onUpdate(() => { this.kp.onUpdate(() => {
const curCamPos = this.kp.camPos(); const curCamPos = this.kp.camPos();
const camScale = 1 / this.kp.camScale().y; const camScale = 1 / this.kp.camScale().y;