Change control scheme

This commit is contained in:
2026-03-11 20:50:08 +01:00
parent 8e66f13c85
commit 4a144ac9f9
3 changed files with 27 additions and 23 deletions
+2 -2
View File
@@ -648,7 +648,7 @@ pub fn updateAndRender(memory: *platform.AppMemory, buffer: platform.OffscreenBu
const diff = mouse_pos.sub(state.mouse_pos);
brick.pos = brick.pos.add(diff);
if (keyPressed(&input.key.space)) {
if (keyPressed(&input.key.e)) {
brick.rotating = true;
const rotated = brick.rotate();
brick.tiles = rotated;
@@ -659,7 +659,7 @@ pub fn updateAndRender(memory: *platform.AppMemory, buffer: platform.OffscreenBu
}
// Flip
if (keyPressed(&input.key.f)) {
if (keyPressed(&input.key.w)) {
brick.rotating = true;
const flipped = brick.transpose();
brick.tiles = flipped;