From a6e99ffa2df3713d23448717a3ecee6db8830d04 Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange Date: Sat, 1 Jun 2024 13:45:23 -0500 Subject: [PATCH] fix controls a little --- assets/scripts/KaplayMap/index.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/assets/scripts/KaplayMap/index.js b/assets/scripts/KaplayMap/index.js index 4125027..888111a 100644 --- a/assets/scripts/KaplayMap/index.js +++ b/assets/scripts/KaplayMap/index.js @@ -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(() => { const curCamPos = this.kp.camPos(); const camScale = 1 / this.kp.camScale().y;