class Game::Game

Defined in:

game/game.cr

Constant Summary

AUDIO = false
BACKGROUND_COLOR = Color::Black
DEBUG = false
DRAW_FPS = false
EXIT_WITH_ESC = true
FULLSCREEN = false
NAME = "Game"
RESIZEABLE = false
SCREEN_HEIGHT = 768
SCREEN_WIDTH = 1280
TARGET_FPS = 60

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : String = NAME, fullscreen : Bool = FULLSCREEN, screen_width = nil, screen_height = nil, target_fps : Int32 = TARGET_FPS, background_color : ::Game::Color = BACKGROUND_COLOR, resizeable : Bool = RESIZEABLE, audio : Bool = AUDIO, draw_fps : Bool = DRAW_FPS, exit_with_esc = EXIT_WITH_ESC) #

[View source]

Class Method Detail

def self.begin_3d #

[View source]
def self.camera #

[View source]
def self.camera=(camera : Camera) #

[View source]
def self.end_3d #

[View source]
def self.screen_height #

[View source]
def self.screen_width #

[View source]
def self.to_degrees(radians : Int32 | Float32 | Float64) #

[View source]

Instance Method Detail

def audio? : Bool #

[View source]
def background_color : Color #

[View source]
def close #

[View source]
def close? #

[View source]
def draw #

[View source]
def draw_fps? : Bool #

[View source]
def draw_wrapper #

[View source]
def fullscreen? : Bool #

[View source]
def name : String #

[View source]
def resizeable? : Bool #

[View source]
def run #

[View source]
def running? #

[View source]
def screen_height #

[View source]
def screen_width #

[View source]
def setup #

[View source]
def should_close? #

[View source]
def target_fps : Int32 #

[View source]
def update(_frame_time) #

[View source]