Class: GamesAndRpgParadise::Char1
- Inherits:
-
Characters
- Object
- Chingu::GameObject
- Characters
- GamesAndRpgParadise::Char1
show all
- Defined in:
- lib/games_and_rpg_paradise/gui/gosu/chinguroids/characters.rb
Overview
CHARACTER 1
Char1 can be controlled with the arrow keys in Ending3 gamestate
Instance Method Summary
collapse
Methods inherited from Characters
#initialize, #update
Instance Method Details
#holding_down ⇒ Object
193
|
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/characters.rb', line 193
def holding_down; @y += 8; end
|
#holding_left ⇒ Object
190
|
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/characters.rb', line 190
def holding_left; @x -= 8; end
|
#holding_right ⇒ Object
191
|
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/characters.rb', line 191
def holding_right; @x += 8; end
|
#holding_up ⇒ Object
192
|
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/characters.rb', line 192
def holding_up; @y -= 8; end
|
#setup ⇒ Object
185
186
187
188
189
|
# File 'lib/games_and_rpg_paradise/gui/gosu/chinguroids/characters.rb', line 185
def setup
@motion = 1
@image = Gosu::Image["assets/characters/char1.png"]
self.input = [:holding_left, :holding_right, :holding_up, :holding_down ]
end
|