class GameObject

Defined in:

game_object.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32, y : Int32, spr_width : Int32, spr_height : Int32, texture_path : String) #

[View source]

Instance Method Detail

def create_source_rect(x : Int32, y : Int32, w : Int32, h : Int32) #

[View source]
def draw(renderer : Pointer(LibSDL::Renderer)) #

[View source]
def free #

[View source]
def height : Int32 #

[View source]
def height=(height : Int32) #

[View source]
def load(renderer : Pointer(LibSDL::Renderer)) #

[View source]
def width : Int32 #

[View source]
def width=(width : Int32) #

[View source]
def x_pixel : Int32 #

[View source]
def x_pixel=(x_pixel : Int32) #

[View source]
def x_tile : Int32 #

[View source]
def x_tile=(x_tile : Int32) #

[View source]
def y_pixel : Int32 #

[View source]
def y_pixel=(y_pixel : Int32) #

[View source]
def y_tile : Int32 #

[View source]
def y_tile=(y_tile : Int32) #

[View source]