class SfmlBook::Chapter3::Game

Defined in:

chapter3/app.cr

Constant Summary

TIME_PER_FRAME = SF.seconds(1 / 60)

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def handle_player_input(key : SF::Keyboard::Key, pressed : Bool) #

[View source]
def process_events #

[View source]
def render #

[View source]
def run #

[View source]
def update(delta : SF::Time) #

[View source]
def update_statistics(elapsed : SF::Time) #

[View source]