class Bench::GameScene

Defined in:

bench/game_scene.cr

Constant Summary

ObjsPerFrame = 15
QuitFPS = 30

Constructors

Instance Method Summary

Instance methods inherited from class Bench::Scene

destroy destroy, draw draw, exit=(exit : Bool) exit=, exit? : Bool exit?, init init, name : Symbol name, name=(name : Symbol) name=, reset reset, screen_height : Int32 screen_height, screen_height=(screen_height : Int32) screen_height=, screen_width : Int32 screen_width, screen_width=(screen_width : Int32) screen_width=, update(keys : Keys, mouse : Mouse) update

Constructor methods inherited from class Bench::Scene

new(screen_width : Int32, screen_height : Int32)
new
new

Constructor Detail

def self.new(screen_width, screen_height) #

[View source]
def self.new #

[View source]

Instance Method Detail

def add_objs #

[View source]
def calc_fps #

[View source]
def destroy #

[View source]
def draw #

[View source]
def fps : Bench::FPSDisplay #

[View source]
def fps=(fps : Bench::FPSDisplay) #

[View source]
def frames : Int32 #

[View source]
def frames=(frames : Int32) #

[View source]
def init #

[View source]
def init_map #

[View source]
def map : Bench::Map #

[View source]
def map=(map : Bench::Map) #

[View source]
def objs : Array(Bench::BenchObj) #

[View source]
def objs=(objs : Array(Bench::BenchObj)) #

[View source]
def print_exit #

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

[View source]