class Pacman::Point
Represent eatable point
Public Class Methods
new(window)
click to toggle source
# File lib/pacman/Point.rb, line 5 def initialize(window) path = ROOT_PATH + '/media/point.png' @image = Gosu::Image.new(window, path, false) @x = @y = 0.0 end
Public Instance Methods
draw()
click to toggle source
# File lib/pacman/Point.rb, line 11 def draw @image.draw_rot(@x, @y, 1, 0) # draw_rot bere stred obrazku end