abstract class GSF::Game

Defined in:

gsf/game.cr

Constant Summary

DefaultBackgroundColor = SF::Color.new(0, 0, 0)

Constructors

Instance Method Summary

Constructor Detail

def self.new(title = "", mode = SF::VideoMode.desktop_mode, style = SF::Style::None, target_height : UInt32 | Nil = nil) #

[View source]

Instance Method Detail

def background_color #

[View source]
def clock : SF::Clock #

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

[View source]
def event(event) #

[View source]
def exit? : Bool #

[View source]
def joystick_threshold #

[View source]
def mouse_cursor_visible #

[View source]
def run #

[View source]
def stage : Stage #

[View source]
def target_height : UInt32 | Nil #

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

[View source]
def vsync #

[View source]
def window : SF::RenderWindow #

[View source]