class Phase::Cannon

Defined in:

phase/cannon.cr

Constant Summary

SpriteFile = "./assets/cannon.png"
SpriteHeight = 32
SpriteWidth = 80

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def draw(window : SF::RenderWindow) #

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

[View source]
def rotation : Float64 #

[View source]
def sprite : SF::Sprite #

[View source]
def update(frame_time, x, y, rotation : Float64) #

[View source]
def update_movement(rotation : Float64) #

[View source]