class Pacman::Player

model class of pacman

Attributes

direction[RW]
x[RW]
y[RW]

Public Class Methods

new(direction, x, y) click to toggle source
Calls superclass method Pacman::AnimatedObject::new
# File lib/pacman/player.rb, line 4
def initialize(direction, x, y)
  super()
  @direction = direction
  @x, @y = x, y
end