class Goal

Attributes

x[R]
y[R]

Public Class Methods

new(window, coords) click to toggle source
# File lib/ruby-ai/goal.rb, line 6
def initialize(window, coords)
  @image = Gosu::Image.new(window, "#{LIB}/ruby-ai/media/tiny-green.png", false)
  @x = coords[:x]
  @y = coords[:y]
end

Public Instance Methods

draw() click to toggle source
# File lib/ruby-ai/goal.rb, line 12
def draw
  @image.draw(@x, @y, 1)
end