Sha256: 38755439fded8dda562f36182300e0683b0548688bfc4ccebd67850b915567f3

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

class AuthorEngine
  class Game
    include AuthorEngine::Part::Common
    include AuthorEngine::Part::Colors
    include AuthorEngine::Part::Graphics
    include AuthorEngine::Part::Input

    def initialize(code:)
      @background_color = Gosu::Color::BLACK
      self.instance_eval(code)
    end

    def draw_background
      Gosu.draw_rect(0, 0, Window::VIEW_WIDTH, Window::VIEW_HEIGHT, @background_color)
    end

    def init
    end

    def draw
    end

    def update
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
author_engine-0.1.0 lib/author_engine/game/game.rb