Class: RubyGame::Player
- Inherits:
-
MovingObject
- Object
- StaticObject
- MovingObject
- RubyGame::Player
- Defined in:
- lib/ruby_game/player.rb
Instance Attribute Summary
Attributes inherited from StaticObject
Instance Method Summary collapse
-
#initialize(x, y, image_name = 'player') ⇒ Player
constructor
A new instance of Player.
Methods inherited from MovingObject
#init_limits, #move_down, #move_left, #move_right, #move_up, #touch?
Methods inherited from StaticObject
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 |