Creates a polygonal game object.
Example - 2
cfg.Game;
function OnLoad()
{
polygon = gfx.CreatePolygon( [0.2,0.6, 0.8,0.6, 0.5,0.2, 0.2,0.6], 0, 0, 0x33ff55, 6, 0xcc1122 );
}
function OnReady()
{
gfx.AddGraphic( polygon, 0.2, 0.7 );
gfx.Play();
}
def OnLoad():
global polygon
polygon = gfx.CreatePolygon([0.2,0.6, 0.8,0.6, 0.5,0.2, 0.2,0.6], 0, 0, 0x33ff55, 6, 0xcc1122 )
def OnReady():
gfx.AddGraphic(polygon, 0.2, 0.7 )
gfx.Play()