Example - 2
cfg.Game;
function OnLoad()
{
text = gfx.CreateText( "Hello World", 40, "/Sys/Img/Desyrel.xml" );
}
function OnReady()
{
gfx.AddText( text, 0.2, 0.4, 0.2 );
gfx.Play();
}
def OnLoad():
global text
text = gfx.CreateText("Hello World", 40, "/Sys/Img/Desyrel.xml")
def OnReady():
gfx.AddText(text, 0.2, 0.4, 0.2)
gfx.Play()