starx 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/starx +14 -13
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a49b559af441c79c0bf6728a916942d7ac5fa69
4
- data.tar.gz: 9a3b840fde004eefc8a84603ced1bb54e82a4e3b
3
+ metadata.gz: 48c7d63f141c1a80441d623a878d9c93bb30c3cb
4
+ data.tar.gz: c3674921cc91c5f42a24cf681a1708f53efbb089
5
5
  SHA512:
6
- metadata.gz: aaf5b53df1a33fa9dd867d3099d696ca654852f9140f192f42731dfaad5086a192f50a4e99c514adcb62acab3a85e752269ab82f44d923ba134e17bd54254ffb
7
- data.tar.gz: 5de836f5401fcf185b0ee7c71372f303652b5df45542e1a908e671a9c1a4527cd793ba5070aaf1c11cbc8d7ea1d9735108e7a8440b07ea12c6e3b83e69fee9fc
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 - 12
260
- num.times{ print '*' }
261
- print " \e[31m You died. Haha! \e[0m "
262
- (num * 2).times{ print '*' }
263
- print " \e[32m Your score: #{@score}\e[0m"
264
- print ' '
265
- (num * 2).times{ print '*' }
266
- print " To try again hit 'a' "
267
- (num * 2).times{ print '*' }
268
- print " To quit hit 'q' "
269
- (num - 1).times{ print '*' }
270
-
271
- (HEIGHT / 2 - 2).times{ WIDTH.times { print '*' } }
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justyna Rachowicz