class Player
Defined in:
entities/player.cr
Constant Summary
-
AIR_DRAG =
1000_f32
-
AIR_FRICTION =
6000_f32
-
DASH_SPEED =
2900_f32
-
GROUND_FRICTION =
15000_f32
-
RUN_SPEED =
900_f32
-
WALL_JUMP_BOUNCE =
1400_f32
-
WALL_JUMP_SPEED =
900_f32
Instance Method Summary
Instance methods inherited from class Entity
add(entity : Entity)
add,
children : Array(Entity)
children,
children=(children : Array(Entity))
children=,
draw(target : SF::RenderTarget, states : SF::RenderStates)
draw,
finalize
finalize,
load
load,
offset : Proc(Vector)
offset,
offset=(offset : Proc(Vector))
offset=,
owner : Entity | Nil
owner,
owner=(owner : Entity | Nil)
owner=,
position
position,
remove(entity : Entity)
remove,
render(target, states)
render,
unload
unload,
update : Bool
update
Constructor methods inherited from class Entity
new
new
Instance Method Detail
def
attacking=(attacking : Bool)
#
def
can_dash=(can_dash : Bool)
#
def
collider=(collider :
Actor)
#
def
controllable : Bool
#
def
controllable=(controllable : Bool)
#
def
dashing=(dashing : Bool)
#
def
facing=(facing : Int32)
#
def
physics=(physics : Bool)
#
def
render(target, states)
#
def
times_attacked : Int32
#
def
times_attacked=(times_attacked : Int32)
#