Adds a basic shape object to the game.
Example - Basic
cfg.Game;
function OnLoad()
{
rect = gfx.CreateRectangle( 0.8, 0.1, 0xff, 3, 0x5555ff, 1, "floor" );
}
function OnReady()
{
gfx.AddGraphic( rect, .1, 0.4 );
gfx.Play();
}
def OnLoad():
global rect
rect = gfx.CreateRectangle(0.8, 0.1, 0xff, 3, 0x5555ff, 1, "floor")
def OnReady():
gfx.AddGraphic(rect, .1, 0.4)
gfx.Play()