class

Actor

Inherits SF::Drawable < Reference < Object

Constructors

new(position : SF::Vector2f)
Source

Instance methods

alive?
Source
animation_facing(direction)
Source
animation_rect(rect, i) : SF::IntRect
Source
animation_reset(direction)
Source
animation_step
Source
apply_speed(direction : SF::Vector2f)
Source
collides?(other)
Source
dead?
Source
draw(target, states)
Source
global_bounds
Source
move(direction : SF::Vector2f)
Source
next_animation_step
Source
normalize_movement(direction : SF::Vector2f)
Source
position
Source
position=(position : SF::Vector2(Float32))
Source
update(time)
Source