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 : Bool #

[View source]
def attacking=(attacking : Bool) #

[View source]
def can_dash : Bool #

[View source]
def can_dash=(can_dash : Bool) #

[View source]
def collider : Actor #

[View source]
def collider=(collider : Actor) #

[View source]
def controllable : Bool #

[View source]
def controllable=(controllable : Bool) #

[View source]
def dashing : Bool #

[View source]
def dashing=(dashing : Bool) #

[View source]
def end_dash #

[View source]
def facing : Int32 #

[View source]
def facing=(facing : Int32) #

[View source]
def hurtbox : Hurtbox #

[View source]
def hurtbox=(hurtbox : Hurtbox) #

[View source]
def jumping? #

[View source]
def last_ground : SF::Vector2(Float32) #

[View source]
def load #

[View source]
def on_ceiling? #

[View source]
def on_ground? #

[View source]
def on_left_wall? #

[View source]
def on_right_wall? #

[View source]
def physics : Bool #

[View source]
def physics=(physics : Bool) #

[View source]
def render(target, states) #

[View source]
def times_attacked : Int32 #

[View source]
def times_attacked=(times_attacked : Int32) #

[View source]
def update #

[View source]
def velocity : SF::Vector2(Float32) #

[View source]
def velocity=(velocity : SF::Vector2(Float32)) #

[View source]
def wall_jumping? #

[View source]