{"action":"created","issue":{"url":"https://api.github.com/repos/rdemoparty/stardust/issues/29","labels_url":"https://api.github.com/repos/rdemoparty/stardust/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/rdemoparty/stardust/issues/29/comments","events_url":"https://api.github.com/repos/rdemoparty/stardust/issues/29/events","html_url":"https://github.com/rdemoparty/stardust/issues/29","id":107341510,"number":29,"title":"GD: describe player revival dynamic","user":{"login":"benishor","id":229374,"avatar_url":"https://avatars.githubusercontent.com/u/229374?v=3","gravatar_id":"","url":"https://api.github.com/users/benishor","html_url":"https://github.com/benishor","followers_url":"https://api.github.com/users/benishor/followers","following_url":"https://api.github.com/users/benishor/following{/other_user}","gists_url":"https://api.github.com/users/benishor/gists{/gist_id}","starred_url":"https://api.github.com/users/benishor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benishor/subscriptions","organizations_url":"https://api.github.com/users/benishor/orgs","repos_url":"https://api.github.com/users/benishor/repos","events_url":"https://api.github.com/users/benishor/events{/privacy}","received_events_url":"https://api.github.com/users/benishor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pwliquid","id":8927672,"avatar_url":"https://avatars.githubusercontent.com/u/8927672?v=3","gravatar_id":"","url":"https://api.github.com/users/pwliquid","html_url":"https://github.com/pwliquid","followers_url":"https://api.github.com/users/pwliquid/followers","following_url":"https://api.github.com/users/pwliquid/following{/other_user}","gists_url":"https://api.github.com/users/pwliquid/gists{/gist_id}","starred_url":"https://api.github.com/users/pwliquid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwliquid/subscriptions","organizations_url":"https://api.github.com/users/pwliquid/orgs","repos_url":"https://api.github.com/users/pwliquid/repos","events_url":"https://api.github.com/users/pwliquid/events{/privacy}","received_events_url":"https://api.github.com/users/pwliquid/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-09-19T16:01:47Z","updated_at":"2015-11-24T13:38:19Z","closed_at":null,"body":"Please describe the mechanics of player reviving after being killed and has more lives to use. "},"comment":{"url":"https://api.github.com/repos/rdemoparty/stardust/issues/comments/159269650","html_url":"https://github.com/rdemoparty/stardust/issues/29#issuecomment-159269650","issue_url":"https://api.github.com/repos/rdemoparty/stardust/issues/29","id":159269650,"user":{"login":"pwliquid","id":8927672,"avatar_url":"https://avatars.githubusercontent.com/u/8927672?v=3","gravatar_id":"","url":"https://api.github.com/users/pwliquid","html_url":"https://github.com/pwliquid","followers_url":"https://api.github.com/users/pwliquid/followers","following_url":"https://api.github.com/users/pwliquid/following{/other_user}","gists_url":"https://api.github.com/users/pwliquid/gists{/gist_id}","starred_url":"https://api.github.com/users/pwliquid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwliquid/subscriptions","organizations_url":"https://api.github.com/users/pwliquid/orgs","repos_url":"https://api.github.com/users/pwliquid/repos","events_url":"https://api.github.com/users/pwliquid/events{/privacy}","received_events_url":"https://api.github.com/users/pwliquid/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T13:38:19Z","updated_at":"2015-11-24T13:38:19Z","body":"**When the player gets teleported to a spawn capsule:**\r\n- his shields are fully restored\r\n- the old capsule is destroyed\r\n- a new capsule drops, if any available\r\n- the player keeps any stats and bonuses gained after the checkpoint and until his teleportation, since the ship was not destroyed (or we could choose to discard any of these stats and bonuses as further penalty, if doable)\r\n- the sector scrolls normally but for a few moments there are no enemy ships encountered (could be achieved by simply placing the saving checkpoint in an area between enemy waves)\r\n\r\n**Barbology**\r\nEvery 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). \r\n\r\nSaving 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.\r\n\r\nIf 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 \r\nrestart 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). \r\n\r\nWe clearly need to further discuss the mechanics behinds this."}}