Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
GameObject
Inherits
Reference
<
Object
Constructors
new
(x :
Int32
, y :
Int32
, spr_width :
Int32
, spr_height :
Int32
, texture_path :
String
)
Source
Instance methods
create_source_rect
(x :
Int32
, y :
Int32
, w :
Int32
, h :
Int32
)
Source
draw
(renderer :
Pointer
(
LibSDL::Renderer
))
Source
free
Source
height
Source
height=
(height :
Int32
)
Source
load
(renderer :
Pointer
(
LibSDL::Renderer
))
Source
width
Source
width=
(width :
Int32
)
Source
x_pixel
Source
x_pixel=
(x_pixel :
Int32
)
Source
x_tile
Source
x_tile=
(x_tile :
Int32
)
Source
y_pixel
Source
y_pixel=
(y_pixel :
Int32
)
Source
y_tile
Source
y_tile=
(y_tile :
Int32
)
Source