Hi guys, me and my friends are making a 2d platformer and are in desperate need of help. This is the link to our github repository, the updated code is in the MainMenu branch:
https://github.com/koay-whyes/TT5L-06-Project.git
So, our main issue is the level resetting. When we click the restart button in level 1, the level data does not load properly. And whenever we go to the next level, the platforms shifts and do not look the way they are intended to look. Plus, the player cannot interact with the environment and the enemies don't shoot. Also, the background doesn't scroll.
We suspect that it is because we didn't put the main game loop into another function. We tried to separate it into another class but it didn't work. Or maybe the problem is with the screen scroll but we're not really sure. Any help or advice is greatly appreciated.
https://github.com/koay-whyes/TT5L-06-Project.git
So, our main issue is the level resetting. When we click the restart button in level 1, the level data does not load properly. And whenever we go to the next level, the platforms shifts and do not look the way they are intended to look. Plus, the player cannot interact with the environment and the enemies don't shoot. Also, the background doesn't scroll.
We suspect that it is because we didn't put the main game loop into another function. We tried to separate it into another class but it didn't work. Or maybe the problem is with the screen scroll but we're not really sure. Any help or advice is greatly appreciated.