cfg.Game;
function OnLoad()
{
gfx.AddPhysics(0);
gfx.Enclose( -1, "left,top,right,bottom", 1, 0.9, 0 );
ball1 = gfx.CreateSprite( "/Sys/Img/Forward.png" );
ball2 = gfx.CreateSprite( "/Sys/Img/Forward.png" );
}
function OnReady()
{
gfx.AddSprite( ball1, 0.2, 0.6, 0.16 );
ball1.SetPhysics( 1, "Dynamic", 0.5, 0.8, 0.01 );
ball1.SetVelocity( 2, -2.3 );
ball1.SetShape( "round" );
gfx.AddSprite( ball2, 0.5, 0.6, 0.24 );
ball2.SetPhysics( 1, "Dynamic", 0.5, 0.8, 0.01 );
ball2.SetVelocity( 2, 2.3 );
ball2.SetShape( "round" );
gfx.Play();
}