class Phase::Beam
- Phase::Beam
- Phase::SuperWeapon
- Reference
- Object
Defined in:
phase/beam.crConstant Summary
-
Damage =
3
-
Duration =
1337.milliseconds
-
MaxDistance =
3333
-
SegmentHeight =
32
-
Segments =
(MaxDistance / SegmentHeight).to_i
-
SegmentWidth =
8
-
SpriteSegment =
"./assets/beam.png"
-
SpriteTip =
"./assets/beam_tip.png"
Constructors
Instance Method Summary
- #distance : Float64
- #draw(window : SF::RenderWindow)
- #duration_timer : GSF::Timer
- #height
- #hit?(circle : Circle) : Bool
- #move(x, y, rotation)
- #rotation(*args, **options)
- #rotation(*args, **options, &)
- #sprite : SF::Sprite
- #sprite_tip : SF::Sprite
- #update(frame_time, current : Bool, timer_done : Bool, x : Float64, y : Float64, rotation : Float64, objs : Array(HealthObj))