gemwarrior 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d645e9d63d18268d68ccb530aceedce650f68b3
4
- data.tar.gz: 6285dd9e0779230fedb17edf536342af39d28ab7
3
+ metadata.gz: ea08b87883f54da20f1d41ec61429fe78b5b2032
4
+ data.tar.gz: dcfd35237afc453752c1cb8b803d7c2c64bff55f
5
5
  SHA512:
6
- metadata.gz: ae8f0babc3338425030bb6d22cd1fda25efedabb9f3b6d548b8290142e2c3d2c62a64f4682dfbf0c78856b048f0cdb103fddf9a853eeeb9189a36f2e2bf45965
7
- data.tar.gz: 971d03ca009d04fa82f732964512bd3a4f1225cfb921e5ffeeea07b058ce3e9e0984bc94c153939bdb9cc8e7505a72205e2db49e64148535c0c29a066dbde35a
6
+ metadata.gz: 99bd26da3c0805e93030b251fea638d374feb2111c0205c7042efdd77210cf426030469d93e779265c79141a4bd47596abe99605b5bd8e98362e62049257f649
7
+ data.tar.gz: d6040d97609478db3cb37f8bac61aac45bff6e618a51ac4dc9d950f73e1d66efa1db204c15fc4f3b894e4f55eadde085a8682f9055d992854c2fdcfe91a48e52
data/.gitignore CHANGED
@@ -1,11 +1,11 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- *.gct
11
- /img/
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.gct
11
+ /img/
@@ -1,58 +1,58 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'optparse'
4
-
5
- require_relative '../lib/gemwarrior/misc/version'
6
- require_relative '../lib/gemwarrior/game'
7
-
8
- GAME_NAME = "Gem Warrior"
9
-
10
- def parse_options
11
- options = {:debug_mode => false, :god_mode => false, :beast_mode => false, :use_wordnik => false}
12
-
13
- optparse = OptionParser.new do |opts|
14
- opts.on('-v', '--version', 'Display version number and exit') do
15
- puts "#{GAME_NAME} v#{Gemwarrior::VERSION}"
16
- exit
17
- end
18
-
19
- opts.on('-d', '--debug', 'Turn debug on') do
20
- options[:debug_mode] = true
21
- end
22
-
23
- opts.on('-g', '--god', 'Set godmode to true on load') do
24
- options[:god_mode] = true
25
- end
26
-
27
- opts.on('-b', '--beast', 'Set beastmode to true on load') do
28
- options[:beast_mode] = true
29
- end
30
-
31
- opts.on('-w', '--wordnik', 'Use Wordnik to generate more diverse, dynamic descriptors of entities') do
32
- options[:use_wordnik] = true
33
- end
34
- end
35
-
36
- optparse.parse!()
37
-
38
- return options
39
- end
40
-
41
- def print_error(error)
42
- case error
43
- when OptionParser::InvalidOption
44
- puts "#{$PROGRAM_NAME}: illegal option #{error.args.join(' ')}"
45
- else
46
- puts "An unexpected error occurred while running #{$PROGRAM_NAME}:"
47
- puts " #{error}\n"
48
- end
49
- end
50
-
51
- begin
52
- options = parse_options
53
-
54
- Gemwarrior::Game.new(options)
55
- rescue => error
56
- print_error(error)
57
- exit(false)
58
- end
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'optparse'
4
+
5
+ require_relative '../lib/gemwarrior/misc/version'
6
+ require_relative '../lib/gemwarrior/game'
7
+
8
+ GAME_NAME = "Gem Warrior"
9
+
10
+ def parse_options
11
+ options = {:debug_mode => false, :god_mode => false, :beast_mode => false, :use_wordnik => false}
12
+
13
+ optparse = OptionParser.new do |opts|
14
+ opts.on('-v', '--version', 'Display version number and exit') do
15
+ puts "#{GAME_NAME} v#{Gemwarrior::VERSION}"
16
+ exit
17
+ end
18
+
19
+ opts.on('-d', '--debug', 'Turn debug on') do
20
+ options[:debug_mode] = true
21
+ end
22
+
23
+ opts.on('-g', '--god', 'Set godmode to true on load') do
24
+ options[:god_mode] = true
25
+ end
26
+
27
+ opts.on('-b', '--beast', 'Set beastmode to true on load') do
28
+ options[:beast_mode] = true
29
+ end
30
+
31
+ opts.on('-w', '--wordnik', 'Use Wordnik to generate more diverse, dynamic descriptors of entities') do
32
+ options[:use_wordnik] = true
33
+ end
34
+ end
35
+
36
+ optparse.parse!()
37
+
38
+ return options
39
+ end
40
+
41
+ def print_error(error)
42
+ case error
43
+ when OptionParser::InvalidOption
44
+ puts "#{$PROGRAM_NAME}: illegal option #{error.args.join(' ')}"
45
+ else
46
+ puts "An unexpected error occurred while running #{$PROGRAM_NAME}:"
47
+ puts " #{error}\n"
48
+ end
49
+ end
50
+
51
+ begin
52
+ options = parse_options
53
+
54
+ Gemwarrior::Game.new(options)
55
+ rescue => error
56
+ print_error(error)
57
+ exit(false)
58
+ end
@@ -0,0 +1,600 @@
1
+ -
2
+ name: 'Home'
3
+ description: 'The little, unimportant, decrepit hut that you live in.'
4
+ danger_level: :none
5
+ coords:
6
+ x: 5
7
+ y: 0
8
+ locs_connected:
9
+ north: true
10
+ east: true
11
+ south: false
12
+ west: true
13
+ items:
14
+ - Bed
15
+ - Stone
16
+ - Tent
17
+
18
+ -
19
+ name: 'Cave (Entrance)'
20
+ description: 'A nearby, dank entrance to a cavern, surely filled with stacktites, stonemites, and rocksites.'
21
+ danger_level: :low
22
+ coords:
23
+ x: 6
24
+ y: 0
25
+ locs_connected:
26
+ north: false
27
+ east: true
28
+ south: false
29
+ west: true
30
+ monster_level_range:
31
+ lo: 1
32
+ hi: 2
33
+
34
+ -
35
+ name: 'Cave (Antechamber)'
36
+ description: 'Now inside the cavern, you confirm there are stacktites, stonemites, rocksites, and even some pebblejites.'
37
+ danger_level: :moderate
38
+ coords:
39
+ x: 7
40
+ y: 0
41
+ locs_connected:
42
+ north: true
43
+ east: true
44
+ south: false
45
+ west: true
46
+ monster_level_range:
47
+ lo: 2
48
+ hi: 3
49
+ items:
50
+ - Stalactite
51
+ - Stonemite
52
+
53
+ -
54
+ name: 'Cave (Nook)'
55
+ description: 'A depression in the cave wall casts a shadow over a small rock shelf.'
56
+ danger_level: :moderate
57
+ monster_level_range:
58
+ lo: 2
59
+ hi: 3
60
+ coords:
61
+ x: 7
62
+ y: 1
63
+ locs_connected:
64
+ north: false
65
+ east: true
66
+ south: true
67
+ west: false
68
+
69
+ -
70
+ name: 'Cave (Dropoff)'
71
+ description: 'Caves do not usually feature sudden chasms spilling down into an unknowable void, but this one does.'
72
+ danger_level: :moderate,
73
+ coords:
74
+ x: 8
75
+ y: 1
76
+ locs_connected:
77
+ north: false
78
+ east: false
79
+ south: true
80
+ west: true
81
+ monster_level_range:
82
+ lo: 2
83
+ hi: 4
84
+
85
+ -
86
+ name: 'Cave (Causeway)'
87
+ description: 'Paths lead north and west, but nothing of interest is in this causeway.'
88
+ danger_level: :moderate
89
+ coords:
90
+ x: 8
91
+ y: 0
92
+ locs_connected:
93
+ north: true
94
+ east: false
95
+ south: false
96
+ west: true
97
+ monster_level_range:
98
+ lo: 2
99
+ hi: 3
100
+ -
101
+ name: 'Forest (Southeast)'
102
+ description: 'Trees exist here, in droves.'
103
+ danger_level: :low
104
+ coords:
105
+ x: 4
106
+ y: 0
107
+ locs_connected:
108
+ north: true
109
+ east: true
110
+ south: false
111
+ west: false
112
+ monster_level_range:
113
+ lo: 1
114
+ hi: 3
115
+ items:
116
+ - Tree
117
+
118
+ -
119
+ name: 'Forest (Northeast)'
120
+ description: 'You see much foliage.'
121
+ danger_level: :low
122
+ coords:
123
+ x: 4
124
+ y: 1
125
+ locs_connected:
126
+ north: false
127
+ east: false
128
+ south: true
129
+ west: true
130
+ monster_level_range:
131
+ lo: 1
132
+ hi: 3
133
+
134
+ -
135
+ name: 'Forest (Northwest)'
136
+ description: 'The amount of leaves and branches and trunks you can see boggles the mind.'
137
+ danger_level: :low
138
+ coords:
139
+ x: 3
140
+ y: 1
141
+ locs_connected:
142
+ north: false
143
+ east: true
144
+ south: true
145
+ west: false
146
+ monster_level_range:
147
+ lo: 1
148
+ hi: 3
149
+ items:
150
+ - Feather
151
+
152
+ -
153
+ name: 'Forest (Southwest)'
154
+ description: 'While you continue to be impressed at the sheer size of this forest, a clearing appears to open up to the west.'
155
+ danger_level: :low
156
+ coords:
157
+ x: 3
158
+ y: 0
159
+ locs_connected:
160
+ north: true
161
+ east: false
162
+ south: false
163
+ west: true
164
+ monster_level_range:
165
+ lo: 1
166
+ hi: 3
167
+
168
+ -
169
+ name: 'Pain Desert (Southeast)'
170
+ description: 'Horrible terribleness emanates from this desolate land of unkind misery.'
171
+ danger_level: :assured
172
+ coords:
173
+ x: 2
174
+ y: 0
175
+ locs_connected:
176
+ north: true
177
+ east: true
178
+ south: false
179
+ west: true
180
+ monster_level_range:
181
+ lo: 5
182
+ hi: 20
183
+ bosses_abounding:
184
+ - Garynetty
185
+
186
+ -
187
+ name: 'Pain Desert (East)'
188
+ description: 'Horrible terribleness emanates from this desolate land of unkind misery.'
189
+ danger_level: :assured
190
+ coords:
191
+ x: 2
192
+ y: 1
193
+ locs_connected:
194
+ north: false
195
+ east: false
196
+ south: true
197
+ west: true
198
+ monster_level_range:
199
+ lo: 5
200
+ hi: 20
201
+ bosses_abounding:
202
+ - Garynetty
203
+
204
+ -
205
+ name: 'Pain Desert (Central)'
206
+ description: 'Horrible terribleness emanates from this desolate land of unkind misery.'
207
+ danger_level: :assured
208
+ coords:
209
+ x: 1
210
+ y: 1
211
+ locs_connected:
212
+ north: true
213
+ east: true
214
+ south: true
215
+ west: true
216
+ monster_level_range:
217
+ lo: 5
218
+ hi: 20
219
+ bosses_abounding:
220
+ - Garynetty
221
+
222
+ -
223
+ name: 'Pain Desert (South)'
224
+ description: 'Horrible terribleness emanates from this desolate land of unkind misery.'
225
+ danger_level: :assured
226
+ coords:
227
+ x: 1
228
+ y: 0
229
+ locs_connected:
230
+ north: true
231
+ east: true
232
+ south: false
233
+ west: false
234
+ monster_level_range:
235
+ lo: 5
236
+ hi: 20
237
+ bosses_abounding:
238
+ - Garynetty
239
+
240
+ -
241
+ name: 'Pain Desert (West)'
242
+ description: 'Horrible terribleness emanates from this desolate land of unkind misery.'
243
+ danger_level: :assured
244
+ coords:
245
+ x: 0
246
+ y: 1
247
+ locs_connected:
248
+ north: true
249
+ east: true
250
+ south: false
251
+ west: false
252
+ monster_level_range:
253
+ lo: 5
254
+ hi: 20
255
+ bosses_abounding:
256
+ - Garynetty
257
+
258
+ -
259
+ name: 'Pain Desert (Northwest)'
260
+ description: 'Horrible terribleness emanates from this desolate land of unkind misery.'
261
+ danger_level: :assured
262
+ coords:
263
+ x: 0
264
+ y: 2
265
+ locs_connected:
266
+ north: false
267
+ east: true
268
+ south: true
269
+ west: false
270
+ monster_level_range:
271
+ lo: 5
272
+ hi: 20
273
+ bosses_abounding:
274
+ - Garynetty
275
+
276
+ -
277
+ name: 'Pain Desert (North)'
278
+ description: 'Horrible terribleness emanates from this desolate land of unkind misery.'
279
+ danger_level: :assured
280
+ coords:
281
+ x: 1
282
+ y: 2
283
+ locs_connected:
284
+ north: false
285
+ east: false
286
+ south: true
287
+ west: true
288
+ monster_level_range:
289
+ lo: 5
290
+ hi: 20
291
+ bosses_abounding:
292
+ - Garynetty
293
+
294
+ -
295
+ name: 'Plains (Outskirts)'
296
+ description: 'A lot of grass and nothing, stretching out northward.'
297
+ danger_level: :low
298
+ coords:
299
+ x: 5
300
+ y: 1
301
+ locs_connected:
302
+ north: true
303
+ east: false
304
+ south: true
305
+ west: false
306
+ monster_level_range:
307
+ lo: 2
308
+ hi: 3
309
+
310
+ -
311
+ name: 'Plains (Fields)'
312
+ description: 'Now you are plum smack dab in the middle of rolling fields.'
313
+ danger_level: :low
314
+ coords:
315
+ x: 5
316
+ y: 2
317
+ locs_connected:
318
+ north: true
319
+ east: false
320
+ south: true
321
+ west: false
322
+ monster_level_range:
323
+ lo: 2
324
+ hi: 3
325
+
326
+ -
327
+ name: 'Plains (South of River)'
328
+ description: 'A raging river borders the northern side of this bucolic vista.'
329
+ danger_level: :low
330
+ coords:
331
+ x: 5
332
+ y: 3
333
+ locs_connected:
334
+ north: false
335
+ east: false
336
+ south: true
337
+ west: true
338
+ monster_level_range:
339
+ lo: 2
340
+ hi: 3
341
+
342
+ -
343
+ name: 'Plains (South of Bridge)'
344
+ description: 'To the north of these fields lies a bridge that may be crossable.'
345
+ danger_level: :low
346
+ coords:
347
+ x: 4
348
+ y: 3
349
+ locs_connected:
350
+ north: true
351
+ east: true
352
+ south: false
353
+ west: true
354
+ monster_level_range:
355
+ lo: 2
356
+ hi: 3
357
+
358
+ -
359
+ name: 'Plains (Hut)'
360
+ description: 'A straw hut sits alone, curiously, in a patch of grass, sticks, and straw.'
361
+ danger_level: :none
362
+ coords:
363
+ x: 3
364
+ y: 3
365
+ locs_connected:
366
+ north: false
367
+ east: true
368
+ south: false
369
+ west: false
370
+
371
+ -
372
+ name: 'River Bridge'
373
+ description: 'Sturdy and safe, this bridge will get you across the otherwise unpassable river you see below.'
374
+ danger_level: :moderate
375
+ coords:
376
+ x: 4
377
+ y: 4
378
+ locs_connected:
379
+ north: true
380
+ east: false
381
+ south: true
382
+ west: false
383
+ monster_level_range:
384
+ lo: 3
385
+ hi: 5
386
+
387
+ -
388
+ name: 'Plains (North of Bridge)'
389
+ description: 'North of the river feels similar to south of the river, as you continue to be surrounded by grass and grass and, well, grass.'
390
+ danger_level: :low
391
+ coords:
392
+ x: 4
393
+ y: 5
394
+ locs_connected:
395
+ north: false
396
+ east: false
397
+ south: true
398
+ west: true
399
+ monster_level_range:
400
+ lo: 2
401
+ hi: 3
402
+
403
+ -
404
+ name: 'Rock Quarry'
405
+ description: 'Piles of rocks, both big and small, are placed here and there, a testament to someone''s surely back-breaking labor.'
406
+ danger_level: :moderate
407
+ coords:
408
+ x: 3
409
+ y: 5
410
+ locs_connected:
411
+ north: false
412
+ east: true
413
+ south: false
414
+ west: false
415
+ monster_level_range:
416
+ lo: 3
417
+ hi: 4
418
+ items:
419
+ - Gun
420
+ - TowerSwitch
421
+
422
+ -
423
+ name: 'Sky Tower (Entryway)'
424
+ description: 'You feel unsettled as you gaze upon the wondrous proportions of Emerald''s home.'
425
+ danger_level: :moderate
426
+ coords:
427
+ x: 8
428
+ y: 6
429
+ locs_connected:
430
+ north: true
431
+ east: true
432
+ south: false
433
+ west: true
434
+ monster_level_range:
435
+ lo: 3
436
+ hi: 4
437
+ items:
438
+ - FloorTile
439
+
440
+ -
441
+ name: 'Sky Tower (Cloud Garden)'
442
+ description: 'A perfectly-maintained array of wispy flowers and other ethereal plantlife contained within a cumulonimbus barrier.'
443
+ danger_level: :moderate
444
+ coords:
445
+ x: 8
446
+ y: 7
447
+ locs_connected:
448
+ north: false
449
+ east: false
450
+ south: true
451
+ west: false
452
+ monster_level_range:
453
+ lo: 3
454
+ hi: 4
455
+ items:
456
+ - Flower
457
+ - Keystone
458
+
459
+ -
460
+ name: 'Sky Tower (Armory)'
461
+ description: 'Weapons of all kinds litter the ground and are hung on hooks from the wall. Tower assailants beware/rejoice!'
462
+ danger_level: :moderate
463
+ coords:
464
+ x: 7
465
+ y: 6
466
+ locs_connected:
467
+ north: true
468
+ east: true
469
+ south: false
470
+ west: false
471
+ monster_level_range:
472
+ lo: 3
473
+ hi: 4
474
+ items:
475
+ - Dehumidifier
476
+
477
+ -
478
+ name: 'Sky Tower (West Hallway)'
479
+ description: 'The hallway seems to stretch on for days.'
480
+ danger_level: :moderate
481
+ coords:
482
+ x: 7
483
+ y: 7
484
+ locs_connected:
485
+ north: true
486
+ east: false
487
+ south: true
488
+ west: false
489
+ monster_level_range:
490
+ lo: 3
491
+ hi: 4
492
+
493
+ -
494
+ name: 'Sky Tower (Waterfalls)'
495
+ description: 'The seemingly neverending deluge of water causes this room to be quite loud, yet pretty.'
496
+ danger_level: :moderate
497
+ coords:
498
+ x: 7
499
+ y: 8
500
+ locs_connected:
501
+ north: true
502
+ east: true
503
+ south: false
504
+ west: false
505
+ monster_level_range:
506
+ lo: 3
507
+ hi: 4
508
+ items:
509
+ - Waterfall
510
+
511
+ -
512
+ name: 'Sky Tower (Massive Door)'
513
+ description: 'Before you lies a massive collection of cumulus clouds that form into a seemingly impenetrable door, beyond which may well be your doom.'
514
+ danger_level: :moderate
515
+ coords:
516
+ x: 8
517
+ y: 8
518
+ locs_connected:
519
+ north: false
520
+ east: true
521
+ south: false
522
+ west: true
523
+ monster_level_range:
524
+ lo: 4
525
+ hi: 5
526
+ items:
527
+ - MassiveDoor
528
+
529
+ -
530
+ name: 'Sky Tower (Throne Room)'
531
+ description: 'There, on a mighty seat made of broken dreams, sits Emerald himself, staring at you coldly, silently.'
532
+ danger_level: :high
533
+ coords:
534
+ x: 8
535
+ y: 9
536
+ locs_connected:
537
+ north: false
538
+ east: false
539
+ south: true
540
+ west: false
541
+ monster_level_range:
542
+ lo: 5
543
+ hi: 7
544
+ items:
545
+ - Throne
546
+ bosses_abounding:
547
+ - Emerald
548
+
549
+ -
550
+ name: 'Sky Tower (Lounge)'
551
+ description: 'Nothing but a simple couch, which looks very comfortable, exists in this corner of the tower.'
552
+ danger_level: :moderate,
553
+ coords:
554
+ x: 9
555
+ y: 8
556
+ locs_connected:
557
+ north: false
558
+ east: false
559
+ south: true
560
+ west: true
561
+ monster_level_range:
562
+ lo: 3
563
+ hi: 4
564
+ items:
565
+ - Couch
566
+
567
+ -
568
+ name: 'Sky Tower (East Hallway)'
569
+ description: 'Longish and neverending is what you might say about this stretch of the tower.'
570
+ danger_level: :moderate
571
+ coords:
572
+ x: 9
573
+ y: 7
574
+ locs_connected:
575
+ north: true
576
+ east: false
577
+ south: true
578
+ west: false
579
+ monster_level_range:
580
+ lo: 3
581
+ hi: 4
582
+
583
+ -
584
+ name: 'Sky Tower (Kitchen)'
585
+ description: 'This kitchen looks well-used, as appliances abound, and leftover food sits atop counters.'
586
+ danger_level: :moderate
587
+ coords:
588
+ x: 9
589
+ y: 6
590
+ locs_connected:
591
+ north: true
592
+ east: false
593
+ south: false
594
+ west: true
595
+ monster_level_range:
596
+ lo: 3
597
+ hi: 4
598
+ items:
599
+ - Apple
600
+ - Cup