We are developing a game in html5 using limejs. We need an endless background . How can we acheive this?
what do you mean by endless background? Do you want the same background image on your entire page? If so then something like this will work:
The default in the above code is to repeat the image both ways - vertically and horizontally. If you want to repeat the image only horizontally or vertically then select the code from this:
Hope this gives you an idea what to do.
thanx................We are developing a car race in limejs. We need an endless road
We coded like this.....
|for(var i=1; i<150;i++)|
|var image||=||new lime.Sprite().setPosition(500,450-(150*i)).setSize(555,152).setFill('road.jpg');|
Is this the right way ?
We want to turn the car when "RIGHT and UP " arrow pressed together.