How to properly scroll a 2D tilemap?
- by Sri Harsha Chilakapati
Hello and I'm trying to make my own game engine in Java. I have completed all the necessary ones but I can't figure it out with the TileGame class. It just can't scroll. Also there are no exceptions. Here I'm listing the code.
TileGame.java
@Override
public void draw(Graphics2D g) {
if (back!=null){
back.render(g);
}
if…