2D asteroids style map wrapping

I managed to get the other method working properly finally, and since I’m using an orthograpic display with a set size it shouldn’t matter. Now to get AI of some sort working… I’d rather be making a bullet hell but I’ve gotta do this for my final apparently, even though we were told it was just for fun and not graded.

thank you for the help. I’ll definitely checkout the link you gave.