class Phase::Laser

Defined in:

phase/laser.cr

Constant Summary

Damage = 15
EnemyLaserColor = SF::Color::Red
Height = 16
HitRadius = 16
MaxDistance = 3333
PlayerLaserColor = SF::Color::Green
Sheet = "./assets/laser.png"
Speed = 1337
Width = 48

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(x : Float64 = 0_f32, y : Float64 = 0_f32, rotation : Float64 = 0, from_enemy : Bool = false) #

[View source]

Class Method Detail

def self.hit_radius #

[View source]

Instance Method Detail

def animations : GSF::Animations #

[View source]
def check_distance #

[View source]
def check_shootables(shootables : Array(HealthObj)) #

[View source]
def distance #

[View source]
def draw(window : SF::RenderWindow) #

[View source]
def explode_remove #

[View source]
def fade_remove #

[View source]
def from_enemy? : Bool #

[View source]
def hit?(circle : Circle) #

[View source]
def hit_circles #

[View source]
def hit_radius #

[View source]
def init_x : Float64 #

[View source]
def init_y : Float64 #

[View source]
def remove? : Bool #

[View source]
def rotation : Float64 #

[View source]
def update(frame_time, shootables : Array(HealthObj)) #

[View source]
def update_movement(frame_time) #

[View source]
def x : Float64 #

[View source]
def y : Float64 #

[View source]