class Asteroids

Defined in:

asteroids.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(*args) #

[View source]

Instance Method Detail

def draw #

[View source]
def draw_point(x : Int32, y : Int32, pixel : PF::Pixel, surface = @screen) #

override to wrap the coordinates


[View source]
def generate_asteroids #

[View source]
def setup_round #

[View source]
def update(dt : Float64) #

[View source]
def wrap(position : Vector2) #

[View source]