class Phase::Laser
- Phase::Laser
- Reference
- Object
Defined in:
phase/laser.crConstant 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
- #animations : GSF::Animations
- #check_distance
- #check_shootables(shootables : Array(HealthObj))
- #distance
- #draw(window : SF::RenderWindow)
- #explode_remove
- #fade_remove
- #from_enemy? : Bool
- #hit?(circle : Circle)
- #hit_circles
- #hit_radius
- #init_x : Float64
- #init_y : Float64
- #remove? : Bool
- #rotation : Float64
- #update(frame_time, shootables : Array(HealthObj))
- #update_movement(frame_time)
- #x : Float64
- #y : Float64
Constructor Detail
def self.new(x : Float64 = 0_f32, y : Float64 = 0_f32, rotation : Float64 = 0, from_enemy : Bool = false)
#