class Mallofneeds::Stage

Included Modules

Defined in:

mallofneeds.cr

Constant Summary

BG = [SF::Texture.from_file("media/bg/background_fun.png"), SF::Texture.from_file("media/bg/background.jpg"), SF::Texture.from_file("media/bg/background.png"), SF::Texture.from_file("media/bg/mallsoft.jpg")]
TIME_LIMIT = 15

Constructors

Instance Method Summary

Constructor Detail

def self.new(stage_number : Int32, player : Mallofneeds::Player, money : Int32, debt : Int32) #

[View source]

Instance Method Detail

def consume(item) #

[View source]
def draw(target, states) #

[View source]
def draw_gui(target) #

[View source]
def expenses : Int32 #

[View source]
def fun : Int32 #

[View source]
def health : Int32 #

[View source]
def needs_background? #

[View source]
def needs_item? #

[View source]
def spawn_random_background #

[View source]
def spawn_random_item #

[View source]
def stage_number : Int32 #

[View source]
def time_up? #

[View source]
def update #

[View source]
def update_gui #

[View source]