class Phase::Scene::Main

Defined in:

phase/scene/main.cr

Constant Summary

GameOverWaitDuration = 500.milliseconds

Constructors

Instance Method Summary

Constructor Detail

def self.new(window) #

[View source]

Instance Method Detail

def add_lasers #

[View source]
def draw(window) #

[View source]
def drop_off_targets : Array(NamedTuple(x: Int32, y: Int32)) #

[View source]
def enemy_carriers : Array(EnemyCarrier) #

[View source]
def enemy_groups : Array(EnemyGroup) #

[View source]
def game_over? #

[View source]
def game_over_message #

[View source]
def game_over_timer : Timer #

[View source]
def hud : Phase::HUD #

[View source]
def lasers : Array(Laser) #

[View source]
def objs : Array(HealthObj) #

[View source]
def restart? : Bool #

[View source]
def score : Int32 #

[View source]
def ship : Phase::Ship #

[View source]
def star_bases : Array(StarBase) #

[View source]
def update(frame_time, keys : Keys, mouse : Mouse, joysticks : Joysticks) #

[View source]
def update_enemy_carriers #

[View source]
def update_lasers(frame_time) #

[View source]
def update_objs(frame_time) #

[View source]
def view : GSF::View #

[View source]