class VectorSprite

Direct Known Subclasses

Defined in:

lib/vector-sprite.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(position : Rl::Vector2, shapes : Array(Shape), virtual_screen_width : Float64, virtual_screen_height : Float64) #

[View source]

Instance Method Detail

def draw #

[View source]
def position : Raylib::Vector2 #

[View source]
def position=(position : Raylib::Vector2) #

[View source]
def rotate(deg) #

[View source]
def rotation : Float64 #

[View source]
def rotation=(rotation : Float64) #

[View source]
def update(deg) #

[View source]
def update #

[View source]
def velocity : Raylib::Vector2 #

[View source]
def velocity=(velocity : Raylib::Vector2) #

[View source]