diff options
Diffstat (limited to 'app/lib/components/03_player_control.rb')
| -rw-r--r-- | app/lib/components/03_player_control.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/app/lib/components/03_player_control.rb b/app/lib/components/03_player_control.rb deleted file mode 100644 index d5d8f7a..0000000 --- a/app/lib/components/03_player_control.rb +++ /dev/null @@ -1,21 +0,0 @@ -class Components - # Gives control(keyboard or otherwise) over an object - class PlayerControl < Helper::BaseComponent - attr_accessor :north, :south, :east, :west, :interact, :menu - - def initialize - @north = 'up' - @south = 'down' - @east = 'right' - @west = 'left' - @interact = 'space' - @menu = 'enter' - end - - def set(**opts) - opts.each do |key, value| - send "#{key}=", value - end - end - end -end |
