Skip to content

Commit

Permalink
- update printing of formatted directions
Browse files Browse the repository at this point in the history
- add command log (for save/load functionality)
- move messages from code to separate YAML file
- implement save game (based on command log)
  • Loading branch information
lstejskal committed May 23, 2009
1 parent 6d9419b commit 5311f5a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog.txt
@@ -0,0 +1,6 @@

23.5.
- update printing of formatted directions
- add command log (for save/load functionality)
- move messages from code to separate YAML file
- implement save game (based on command log)
9 changes: 9 additions & 0 deletions messages.yml
@@ -0,0 +1,9 @@
give_gemstone_to_wizard: "You took gemstone out of your pocket. Wizard's eyes glitter and he yells: 'Behold, the Eye of Grub!', he raises his hand and the gemstone flows from you to him. He chants and chants, gets kinda boring, but suddenly there's loud BANG and gemstone splits into two and falls on ground. Wizard looks surprised for a moment, but then he says: 'That's exactly what I had in mind. Take it and off with you!'"

give_gemstone_to_blacksmith: "Blacksmith examines the gemstone. 'Beautiful piece of rock it is, and magical, no doubt about it. I could forge it into your sword, but I cannot work for free! Sorry, but times are hard.'"

give_gemstone_shards_to_blacksmith: "'I'll forge one half of this gemstone into your sword and take the other half as a payment for my hard work' says blacksmith. He takes your sword and closes himself in the smithy. Much later he comes out, tired and drenched in sweat, and hands out the reforged sword, which emanates strange blue glow."

use_rusty_sword_on_grelok: "You stab, slash and swing your old sword at Grelok, but it doesn't have any effect. 'You fool, your puny weapon can harm me!' he laughs at you and continue to spew heresies."

use_shining_sword_on_grelok: "Grelok lets out a sinister laugh when you attack him, but when you cut off both of his legs at once, he yells: 'No! The legendary Eye of Grub! You can't beat me!' and conjures army of demons at his side. Clouds cover the sky and start raining fire, demons scream and Grelok chants a terrible curse. You throw the sword into his wide-opened mouth and it makes his head explode. The daemons' army turn into stone. \nSuddenly sky is blue again and refreshing cold breeze returns back to the mountains. The flock of pitch-black ravens feasts on the Grelok's squishy remains.\n\nCongratulations, the victory is yours!\n\nTHE END\n\n"

0 comments on commit 5311f5a

Please sign in to comment.