ryanb / ruby-warrior

Game written in Ruby for learning Ruby.
MIT License
3.83k stars 838 forks source link

Golem #5

Closed ryanb closed 14 years ago

ryanb commented 15 years ago

One interesting ability would be "warrior.golem!" which would spawn a separate character in front of the warrior. It would be weaker than a warrior and have fewer abilities. This would be a good use for a block in Ruby to control the golem's actions each turn.

warrior.golem! do |golem|
  golem.walk!
  #...
end

Likely only one golem could be made at a time. Also maybe it should have some bad consequences like cut the warrior's health in half?

What do you think of this idea? Would it be too confusing? What would be the best way to express which abilities the golem has?

ryanb commented 14 years ago

The functionality has been added but levels which use this has not yet. I plan to make a Clay tower which is filled with puzzles which require use of making one or more golems. The golems have their own abilities separate from warrior which opens up unique level possibilities.