abstract class GSF::Stage

Direct Known Subclasses

Defined in:

gsf/stage.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

abstract def check_scenes #

check when to switch scenes using #switch(scene : Scene)


[View source]
def draw(window : SF::RenderWindow) #

[View source]
def event(event) #

called from GSF::Game, used to set things like keys, mouse, etc from events


[View source]
def exit? : Bool #

[View source]
def joysticks : GSF::Joysticks #

[View source]
def keys : GSF::Keys #

[View source]
def mouse : GSF::Mouse #

[View source]
def scene : Scene #

[View source]
def switch(scene : Scene) #

[View source]
def update(frame_time : Float32) #

[View source]