Module: Lotu::Controllable

Defined in:
lib/lotu/behaviors/controllable.rb

Instance Method Summary collapse

Instance Method Details

#set_keys(keys) ⇒ Object

This will call #go_up every game loop Gosu::Button::KbUp => :go_up This is the same as the above Gosu::Button::KbUp => [:go_up, 0]

This will call #go_up once Gosu::Button::KbUp => [:go_up, false]

This will call #go_up every 50ms Gosu::Button::KbUp => [:go_up, 50]



15
16
17
# File 'lib/lotu/behaviors/controllable.rb', line 15

def set_keys(keys)
  @parent.systems[InputManagerSystem].set_keys(self, keys)
end