I’m working on a scrolling tile game (think minicraft) and i have two questions:
- How do I make the screen move depending on where the player is?
- How do I know which tiles to draw depending on which tiles on currently on screen (my method of this(looping through every single tile) doesn’t work).
Any help would be appreciated, and any code examples would be greatly appreciated .