starx 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/starx +14 -13
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48c7d63f141c1a80441d623a878d9c93bb30c3cb
|
4
|
+
data.tar.gz: c3674921cc91c5f42a24cf681a1708f53efbb089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a625d1017ae68b83a8da9492a04c2762852c4791197e4b97937308fdd145f2cfe1a2162b034dbb9cbf817114dd6bbf46ccca89ea4b43ecd38caa3ae733e3dc64
|
7
|
+
data.tar.gz: 00d15e6cfe4ae5d1131b145e3e0fca5a73d153d0c786f58eff3a8dd1bd5cde61192b263ed7ea919c80163aa7fd0310b749137f64470e14fc8f610ebfa37e961b
|
data/bin/starx
CHANGED
@@ -256,19 +256,20 @@ class Starx
|
|
256
256
|
def try_again_screen
|
257
257
|
(HEIGHT / 2).times{ WIDTH.times { print '*' } }
|
258
258
|
|
259
|
-
num = WIDTH / 2
|
260
|
-
|
261
|
-
print "
|
262
|
-
|
263
|
-
|
264
|
-
print
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
print "
|
269
|
-
|
270
|
-
|
271
|
-
|
259
|
+
num = WIDTH / 2
|
260
|
+
(WIDTH / 2 - 10).times{ print ' '}
|
261
|
+
print "\e[31m You died. Haha!\e[0m\n"
|
262
|
+
puts ''
|
263
|
+
(WIDTH / 2 - 10).times{ print ' '}
|
264
|
+
print "\e[32m Your score: #{@score}\e[0m\n"
|
265
|
+
puts ''
|
266
|
+
puts ''
|
267
|
+
(WIDTH / 2 - 10).times{ print ' '}
|
268
|
+
print "To try again hit 'a'\n"
|
269
|
+
(WIDTH / 2 - 10).times{ print ' '}
|
270
|
+
print "To quit hit 'q'\n"
|
271
|
+
|
272
|
+
(HEIGHT / 2 - 1).times{ WIDTH.times { print '*' } }
|
272
273
|
puts ''
|
273
274
|
keys_menu
|
274
275
|
|