I’ve been going through this (https://github.com/matheus23/TinyWorld/blob/master/src/org/matheusdev/screens/Screen.java) game made by mathus23 and have been figuring out what certain things do and how they work as to help me in creating a game. So-far I’ve figured everything that I’ve needed to out but there is one thing that I can’t and that is the tick() method.
After going through a few of the classes that extend the Screen class and looking at what’s happening inside of the tick() method I came to the conclusion that every time the game loop does a loop it is telling all of the classes that use the tick() method to run their tick() methods. After trying this in my own program as to make sure this was what it was really doing it ended up doing nothing. What does the tick() method do?
The game loop on github is (TinyWorld / src / org / matheusdev / GameCanvas.java) and pretty much everything in (TinyWorld / src / org / matheusdev / screens /) uses the tick() method.