module Onsengame::Object::Base

Attributes

x[R]
y[R]

Public Class Methods

new(window, x, y, options={}) click to toggle source
# File lib/onsengame/object/base.rb, line 8
def initialize(window, x, y, options={})
  @window = window
  @x = x
  @y = y
  @color = options[:color] || Gosu::Color::WHITE
  @z_order = options[:z_order] || ZOrder::OBJECT
  @font_name = options[:font_name] || "PressStart2P"
  @font_path = File.join(@window.options[:font_dir],
                         "#{@font_name}.ttf")
  @font_size = options[:font_size] || 24
  @font = Gosu::Font.new(@window,
                         @font_path,
                         @font_size)
end

Public Instance Methods

draw() click to toggle source
# File lib/onsengame/object/base.rb, line 26
def draw
end
update() click to toggle source
# File lib/onsengame/object/base.rb, line 23
def update
end