I've read other articles here but I can't find the answer. I want to implement a toroidal world (all edges "wrap", the map repeats infinitely across its edges). My My world is basically a 2D rectangle (it's a 2D game) divided into a grid. The
The part I'm having trouble understanding and implementing is this: How should I implement/handle/draw a 2D grid in a toroidal world? The camera always follows the player, so visually you wouldn't notice when you crossed the edge. It
It doesn't matter the language (I use .NET), I'm interested in learning the basics to apply them to my game. Thanks.