class Shoot::HUD

Defined in:

shoot/hud.cr

Constant Summary

Margin = 10
TextColor = SF::Color::Green
TextColorHover = SF::Color::White
TextColorJustPressed = SF::Color.new(255, 0, 255)
TextColorJustReleased = SF::Color.new(0, 0, 255)
TextColorPressed = SF::Color.new(128, 128, 128)

Constructors

Instance Method Summary

Constructor Detail

def self.new(ship : Shoot::ShipBase) #

[View source]

Instance Method Detail

def draw(window : SF::RenderWindow) #

[View source]
def ship : ShipBase #

[View source]
def text : SF::Text #

[View source]
def text_hover(mouse) #

[View source]
def update(frame_time, mouse : Mouse) #

[View source]