aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go13
1 files changed, 11 insertions, 2 deletions
diff --git a/main.go b/main.go
index cd0471f..caf6d6b 100644
--- a/main.go
+++ b/main.go
@@ -116,9 +116,18 @@ func main() {
ppos(22, 0, "...escape, escape!")
return
}
- case 'x':
+ case 'w', 'i': // Up
+ rot = (p.Rot + 1) % 4
+ case 's', 'k': // Down
+ y = p.Y + 1
+ score += 1
+ case 'd', 'l': // Right
+ x = p.X + 1
+ case 'a', 'j': // Left
+ x = p.X - 1
+ case 'x', '.':
rot = (p.Rot + 1) % 4
- case 'z':
+ case 'z', ',':
rot = (p.Rot + 3) % 4
case 'c':
b, p = b.Swap(p)