class Phase::HUD

Defined in:

phase/hud.cr

Constant Summary

Margin = 10
TextColor = SF::Color::Green
TextSelectedColor = SF::Color::White

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(ship : Ship) #

[View source]

Class Method Detail

def self.margin #

[View source]

Instance Method Detail

def draw(window : SF::RenderWindow) #

[View source]
def draw_game_over(window) #

[View source]
def draw_score(window) #

[View source]
def draw_super_percent(window) #

[View source]
def draw_super_weapons(window) #

[View source]
def game_over? : Bool #

[View source]
def game_over_message : String | Nil #

[View source]
def margin #

[View source]
def score_text : String #

[View source]
def ship : Ship #

[View source]
def super_percent_text : String #

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

[View source]
def update(frame_time, score, game_over : Bool, game_over_message : Nil | String) #

[View source]