module Systems::Spawner

Defined in:

systems.cr

Constant Summary

PIPE_BASE_HEIGHT = 520.0
PIPE_DISTANCE = 396.0
PIPE_HEIGHT_MULT = 200.0
PIPE_OFFSET = 360.0
SCORE_TRIGGER_OFFSET = 44.0

Class Method Summary

Class Method Detail

def self.spawn_bird(world : World) #

[View source]
def self.spawn_bottom_pipe(world : World, x : Float32, y : Float32) #

[View source]
def self.spawn_score_trigger(world : World, x : Float32) #

[View source]
def self.spawn_top_pipe(world : World, x : Float32, y : Float32) #

[View source]
def self.update(world : World) #

[View source]