class

Projectile

Inherits SF::Drawable < Reference < Object

Constructors

new(position : SF::Vector2f, direction : SF::Vector2f)
Source

Instance methods

apply_speed(direction)
Source
collides?(enemy : Enemy)
Source
direction
Source
direction=(direction : SF::Vector2(Float32))
Source
draw(target, states)
Source
global_bounds
Source
move
Source
normalize_movement
Source
position
Source
position=(position : SF::Vector2(Float32))
Source