Sha256: b2ae7993bf23ab169f3a70d7faf9e72b3affd0788b19be6cf132bf291d0efd1e

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

module Onsengame
  module Scene
    module Base
      def initialize(window)
        @window = window
        @font_path = File.join(@window.options[:font_dir],
                               "PressStart2P.ttf")
        @objects = []
        @figures = []
      end

      def update
        @objects.each {|object| object.update }
      end

      def draw
        @objects.each {|object| object.draw }
      end

      def button_down(id)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
onsengame-0.0.4 lib/onsengame/scene/base.rb
onsengame-0.0.3 lib/onsengame/scene/base.rb
onsengame-0.0.2 lib/onsengame/scene/base.rb
onsengame-0.0.1 lib/onsengame/scene/base.rb