Hello guys! Yesterday and the day before, I made sector 2 level 4. I also added springs and speed boosters to the game. Save features: Unlocking levels gradually and saving least death count per sector, everything in save.json file and with temp json files to avoid corruption (atomic saving). The least death count is showed at sector hub over each sector gate. Struggles: boosting player’s velX (its zeroed after every frame to avoid sliding, but this also zeroed the boost. The solution was to create a different variable in player, called boostedX, that is managed diferently from velX and taken in account with velX to move player). And bump.lua’s bounce, which I had to replace with “self.velY = -self.velY”, and for some reason automatically ensured energy loss (realistic physics) even though I didn’t program it. And I’ll keep it this way because it’s good, realistic and, most important, fun. Bye!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.