I have a question about world wrapping. Take a game like Asteroids for example, in asteroids if my ship goes past the top of the screen it immediately comes back through the bottom, same on the left and right etc. super easy to do if the play area fits within the display.
My question is about what would be the best way to handle this scenario. take that same game of asteroids and make the play field much larger than the screen of the device, then you have the camera follow the ship as the ship exits the top of the screen say if ship.y < 0 then ship.y = 2000
and an asteroid was following close behind at the same angular velocity, the ship exits the screen and comes out the bottom however it appears the asteroid immediately disappears because it had no yet reached the top. shortly after the ship comes up from the bottom then the asteroid does as well but looks like it just appears from no where.
So the real question is, how can you make an infinitely wrapping world where all the objects within seamlessly appear to exist no matter which edge of the playfield the ship leaves. do you have to mirror the playfield in some manner, seems like having say 9 mirrors of the playfield would lead to serious performance issues. anyone have a trick?
Hope I explained it ok.