Jun-25-2024, 10:53 AM
(This post was last modified: Jun-27-2024, 04:07 PM by gnezdavrukavah.)
I've checked out your GitHub repository. Your issue with the level resetting might be related to how the game state is being managed. When you restart or move to the next level, make sure you're reinitializing all game objects and variables properly. Sometimes, leftover data from the previous state can cause things to misbehave.Separating the main game loop into a function or class can help, but you need to ensure that all relevant game data (like player position, enemy states, and platform positions) is reset correctly. For the background scroll, check if it's being updated in your game loop and tied to the player's movement. I find that taking a break can help. I enjoy playing cash app games for real money that are fun to play and could be a nice break from coding. Hope this helps.