diff options
-rw-r--r-- | main.go | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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) |