class Pacman::Block

Wall in maze

Public Class Methods

new(window) click to toggle source
# File lib/pacman/Block.rb, line 5
def initialize(window)
  path = ROOT_PATH + '/media/block.png'
  @image = Gosu::Image.new(window, path, false)
  @x = @y = 0.0
end

Public Instance Methods

draw() click to toggle source
# File lib/pacman/Block.rb, line 11
def draw
  @image.draw_rot(@x, @y, 1, 0) # draw_rot bere stred obrazku
end