class Phase::Pulse

Defined in:

phase/pulse.cr

Constant Summary

Damage = 9
DebugHitBox = false
Duration = 10.seconds
FireSound = SF::SoundBuffer.from_file("./assets/pulse.wav")
InnerRadii = [0, 64, 128, 192, 256, 288, 304]
OuterRadii = [64, 128, 192, 256, 320, 320, 320]
Sheet = "./assets/pulse.png"
SpriteSize = 640

Constructors

Instance Method Summary

Instance methods inherited from class Phase::SuperWeapon

draw(window : SF::RenderWindow) draw, firing? : Bool firing?, hit?(circle : Circle) : Bool hit?, name : String name

Constructor methods inherited from class Phase::SuperWeapon

new(name : String = "") new

Constructor Detail

def self.new(x : Float64 = 0, y : Float64 = 0) #

[View source]

Instance Method Detail

def animations : GSF::Animations #

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

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

[View source]
def fire_sound : SF::Sound #

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

[View source]
def hit_arc #

[View source]
def move(x : Float64, y : Float64) #

[View source]
def radii #

[View source]
def update(frame_time, current : Bool, timer_done : Bool, x : Float64, y : Float64, objs : Array(HealthObj)) #

[View source]
def x : Float64 #

[View source]
def y : Float64 #

[View source]