{"id":827,"date":"2025-05-22T13:40:53","date_gmt":"2025-05-22T03:40:53","guid":{"rendered":"http:\/\/electricadventures.net\/?p=827"},"modified":"2025-05-22T13:40:53","modified_gmt":"2025-05-22T03:40:53","slug":"lets-make-a-retro-game-ep-12-player-lives","status":"publish","type":"post","link":"https:\/\/electricadventures.net\/?p=827","title":{"rendered":"Lets Make a Retro Game: EP 12: Player Lives"},"content":{"rendered":"\n<p>In this episode, we are going to cover two things: detecting whether any enemy objects hit the player ship, as well as displaying the number of lives the players have remaining.<\/p>\n\n\n\n<p>This will also include detecting when the player is out of lives and ending the game.&nbsp;We will enhance this some more in a future episode.<\/p>\n\n\n\n<p>The supplied code has two folders, Start, where we start the episode and End, the final code and a copy of the ROM file.\u00a0<a href=\"https:\/\/github.com\/tony-cruise\/ElectricAdventuresArchive\/blob\/main\/LMARG\/LMARG-EP12.zip\">Download Source Code<\/a>.<\/p>\n\n\n\n<p>The video associated with this episode is located\u00a0here:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Lets Make a Retro Game - Episode 12 - Player Collisions and Lives\" width=\"960\" height=\"540\" src=\"https:\/\/www.youtube.com\/embed\/Mi17Tgr56hc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>The full article text is in the attached PDF document\u00a0<a href=\"https:\/\/github.com\/tony-cruise\/ElectricAdventuresArchive\/blob\/main\/LMARG\/LMARG-EP12-PlayerCollisionsAndLives.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this episode, we are going to cover two things: detecting whether any enemy objects hit the player ship, as well as displaying the number of lives the players have remaining. This will also include detecting when the player is out of lives and ending the game.&nbsp;We will enhance this some more in a future<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[62],"tags":[],"class_list":["post-827","post","type-post","status-publish","format-standard","hentry","category-lets-make-a-retro-game"],"acf":[],"_links":{"self":[{"href":"https:\/\/electricadventures.net\/index.php?rest_route=\/wp\/v2\/posts\/827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/electricadventures.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/electricadventures.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/electricadventures.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/electricadventures.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=827"}],"version-history":[{"count":1,"href":"https:\/\/electricadventures.net\/index.php?rest_route=\/wp\/v2\/posts\/827\/revisions"}],"predecessor-version":[{"id":828,"href":"https:\/\/electricadventures.net\/index.php?rest_route=\/wp\/v2\/posts\/827\/revisions\/828"}],"wp:attachment":[{"href":"https:\/\/electricadventures.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/electricadventures.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/electricadventures.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}