Sha256: a58a199d673a37845366bded068c0c4131c78475454a2f310de7739f7350e063

Contents?: true

Size: 389 Bytes

Versions: 14

Compression:

Stored size: 389 Bytes

Contents

class Menu < Thing
  
  include Controllable
  
  # TODO Move away
  #
  controls Gosu::Button::KbP => :continue
  
  def initialize window
    @controls = []
    super window
  end
  
  # TODO duplicate
  #
  def handle_input
    @controls.each &:handle
  end
  
  def continue
    window.continue
  end
  
  def loop
    @loop ||= lambda do
      # self.handle_input
    end
  end
  
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gosu_extensions-0.1.21 lib/menu.rb
gosu_extensions-0.1.20 lib/menu.rb
gosu_extensions-0.1.19 lib/menu.rb
gosu_extensions-0.1.18 lib/menu.rb
gosu_extensions-0.1.17 lib/menu.rb
gosu_extensions-0.1.16 lib/menu.rb
gosu_extensions-0.1.15 lib/menu.rb
gosu_extensions-0.1.14 lib/menu.rb
gosu_extensions-0.1.13 lib/menu.rb
gosu_extensions-0.1.12 lib/menu.rb
gosu_extensions-0.1.11 lib/menu.rb
gosu_extensions-0.1.10 lib/menu.rb
gosu_extensions-0.1.9 lib/menu.rb
gosu_extensions-0.1.8 lib/menu.rb