tutorials/ruby/rubywarrior/tim-beginner/README

29 lines
650 B
Plaintext
Raw Normal View History

2016-08-24 19:45:22 -04:00
Level 2
2016-08-24 19:31:35 -04:00
2016-08-24 19:45:22 -04:00
It is too dark to see anything, but you smell sludge nearby.
2016-08-24 19:31:35 -04:00
2016-08-24 19:45:22 -04:00
Tip: Use warrior.feel.empty? to see if there is anything in front of you, and warrior.attack! to fight it. Remember, you can only do one action (ending in !) per turn.
2016-08-24 19:31:35 -04:00
--------
2016-08-24 19:45:22 -04:00
|@ s >|
2016-08-24 19:31:35 -04:00
--------
> = Stairs
@ = Tim (20 HP)
2016-08-24 19:45:22 -04:00
s = Sludge (12 HP)
2016-08-24 19:31:35 -04:00
Warrior Abilities:
2016-08-24 19:45:22 -04:00
warrior.feel
Returns a Space for the given direction (forward by default).
warrior.attack!
Attacks a unit in given direction (forward by default).
2016-08-24 19:31:35 -04:00
warrior.walk!
Move in the given direction (forward by default).
When you're done editing player.rb, run the rubywarrior command again.