class SfmlBook::Chapter1::Game

Defined in:

chapter1/app.cr

Constant Summary

PLAYER_SPEED = 100
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]