class Wall
Attributes
x[R]
y[R]
Public Class Methods
new(window, coords)
click to toggle source
# File lib/ruby-ai/wall.rb, line 7 def initialize(window, coords) @image = Gosu::Image.new(window, "#{LIB}/ruby-ai/media/tiny-brown.png", true) @x = coords[:x] @y = coords[:y] end
Public Instance Methods
draw()
click to toggle source
# File lib/ruby-ai/wall.rb, line 13 def draw @image.draw(@x, @y, 1) end