Following in the "Cat Platformer" series: I updated the garden/farm level to have bouncy hay bales, and finally finished the level. There is a scene at the end (it should show "press E" but I forgot to code that in) -- on press, the animals dance and the player is transported back to the entrance at the previous level.
Technical notes: I implemented a level cache where after switching to a new level, the previous level is taken out of the tree and placed on a detached node. If the player wants to switch back to that level, I put the detached node back in the game root and move the level the player is leaving, into the cache. It is probably over-engineered for a game this small, but I wanted to challenge myself as I will want to use this technique again later.
Problems implementing a level cache: I had to remove instances of the player from various levels and also disconnect/reconnect the score and status window to the player each time the player is moved to a new level.
Cat platformer: Bouncy platforms, end-level scene, with return
Submitted 1 month ago by
openly_retro@tube.fediverse.games to stardance_game_studio@tube.fediverse.games