fix controls a little
This commit is contained in:
parent
530256b476
commit
a6e99ffa2d
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue