switches to automatic animation in div with "backgrounds" id in ingame.html
You can change the transition speed of the animation in onload.js
Map system
Text and Component
backgroundmap({
dx:500,dy:500,//corner side size
x:50,y:50//your position in the image
})
{
backgroundposition:true, //if you add this the object will move when the background moves
position:Cbacground(10,10)//Adjusts according to the resolution of the image (x,y)
}
If you want the Cbackground() to run smoothly, put it under editdisplay()
After using backgroundmap() starts Cbackground() working