Skip to main content
edited title
Link
Kromster
  • 10.7k
  • 4
  • 54
  • 67

Fundamentals / help How to implement a 2D toroidal map?

deleted 60 characters in body
Source Link
Kromster
  • 10.7k
  • 4
  • 54
  • 67

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.

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 world is basically a 2D rectangle (it's a 2D game) divided into a grid. 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 doesn't matter the language (I use .NET), I'm interested in learning the basics to apply them to my game. Thanks.

I want to implement a toroidal world (all edges "wrap", the map repeats infinitely across its edges). My world is basically a 2D rectangle (it's a 2D game) divided into a grid.

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 doesn't matter the language (I use .NET).

Source Link

Fundamentals / help to implement a 2D toroidal map

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 world is basically a 2D rectangle (it's a 2D game) divided into a grid. 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 doesn't matter the language (I use .NET), I'm interested in learning the basics to apply them to my game. Thanks.