Class: RubyGame::Player

Inherits:
MovingObject show all
Defined in:
lib/ruby_game/player.rb

Instance Attribute Summary

Attributes inherited from StaticObject

#x, #y

Instance Method Summary collapse

Methods inherited from MovingObject

#init_limits, #move_down, #move_left, #move_right, #move_up, #touch?

Methods inherited from StaticObject

#draw, #init_image

Constructor Details

#initialize(x, y, image_name = 'player') ⇒ Player

Returns a new instance of Player.



3
4
5
# File 'lib/ruby_game/player.rb', line 3

def initialize(x, y, image_name = 'player')
  super
end