Open benishor opened 9 years ago
When the player gets teleported to a spawn capsule:
Barbology Every time the player spawns (either at the start of a sector or after being bludgeoned), the ship drops a spawn capsule. The capsule is ejected by the ship and moves out of view through the bottom of the screen at normal speed (scrolls down with other stuff). The capsule is like an anchor that trails at a certain distance behind the ship (out of view) and provides teleportation coordinates for when the times are dire. Whenever player ship destruction is imminent, the automated system teleports the ship back to the capsule. The capsule is destroyed during the process, but another one is ejected from the ship, providing there are any capsules left in the hull. After completing a sector, the player gets another capsule. This is the story behind it, but in reality we'll keep things simpler (the capsule is just a decorative sprite).
Saving the game is done automatically when the player reaches checkpoints in the sector. When the player is about to get killed, the ship is teleported back to the last checkpoint, allegedly at the location of the spawn capsule.
If the player dies multiple times and has no capsules left, the next time something bad happens the ship blows up for good and the world ends. Sorry! The player may start over at the beginning of the sector (with whatever stats were present at that time). This means we need to save stats (player stats + spawn capsules, ship modules, etc) for the beginning of every sector and keep them separately than the stats used during the sectors. Wow, this is confusing to you, I bet. What I wanna say is that whenever the player dies for good (has no spawn capsules left), his only option is to restart the sector from the beginning - with his old stats that were present at the beginning of that sector. Or... we could give him a predefined setup, customized for each sector (the harder the sector, the more spawn capsules and stuff).
We clearly need to further discuss the mechanics behinds this.
Please describe the mechanics of player reviving after being killed and has more lives to use.