aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoop Kiefte <ikojba@gmail.com>2020-09-20 23:17:44 +0200
committerJoop Kiefte <ikojba@gmail.com>2020-09-20 23:17:44 +0200
commit3b1c287b8bddd892d72bd89814ff71ba30e8faf0 (patch)
treec4f5079468426713472eaff7dbd709bfcc52e3db
parent2eb179b4c63de8fe9e18972aab4f10912a63f817 (diff)
Remove end wait and correct GAME OVER positioningv1.1.1
-rw-r--r--main.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/main.go b/main.go
index 3f91622..cd0471f 100644
--- a/main.go
+++ b/main.go
@@ -114,7 +114,6 @@ func main() {
x = p.X - 1
default:
ppos(22, 0, "...escape, escape!")
- time.Sleep(2 * time.Second)
return
}
case 'x':
@@ -131,11 +130,9 @@ func main() {
harddrop = true
case 'q':
ppos(22, 0, "...that was exciting!")
- time.Sleep(2 * time.Second)
return
case 'Q':
ppos(22, 0, "...never let an engineer pick the name of your software?")
- time.Sleep(2 * time.Second)
return
}
select {
@@ -172,8 +169,7 @@ func main() {
}
if topout {
- ppos(4, 5, " GAME OVER ")
- time.Sleep(2 * time.Second)
+ ppos(4, 15, " GAME OVER ")
return
}
}