Adds a static background to your game.
Example - Basic
cfg.Game;
function OnLoad()
{
sky = gfx.CreateBackground( "/Sys/Img/Sky.jpg", "stretch" );
}
function OnReady()
{
gfx.AddBackground( sky );
gfx.Play();
}
def OnLoad():
global sky
sky = gfx.CreateBackground("/Sys/Img/Sky.jpg", "stretch")
def OnReady():
gfx.AddBackground(sky)
gfx.Play()