I have an idea and want to know if it is possible and how can I do it.
I don't write very well in English, but I'll try to explain what I have in mind.(Pictures say more than words <img src="smileys/smiley2.gif" border="0" align="middle" /> )
Look at this picture:
<img src="http://i.imgur.com/5W5aWTD.gif1" border="0" />
Imagine this being the screen of my game. What you see is an entire level of the game. The edges of the image are the limits of the layout.
I would like that the character do this:
<img src="http://i.imgur.com/WuPzSH9.gif" border="0" />
The idea is that the layout does not have limits and that it was repeating itself as Tiles.
It would be the opposite of the "Asteroids" game. The camera does not follow the layout, it will follow the spaceship (Mario in this case).
In the picture I did it just horizontally, but I wish it were free, infinitely in all directions.
Does anyone know if this is possible?
PS: I plan to do a layout much larger than the canvas and not small like this example.
Many thanks in advance!