Change control scheme
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user