{"id":1347,"date":"2025-05-10T20:44:53","date_gmt":"2025-05-10T20:44:53","guid":{"rendered":"https:\/\/sites.wsagames.com\/et4g23\/?p=1347"},"modified":"2025-05-10T21:20:44","modified_gmt":"2025-05-10T21:20:44","slug":"prg-pt-5","status":"publish","type":"post","link":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/","title":{"rendered":"PRG &#8211; Pt 5"},"content":{"rendered":"\n<p class=\"has-text-align-center has-background wp-block-paragraph\" style=\"background-color:#dfdfdf\">Once the room Camera System was working, I developed it further to add to the rogue-lite game genre.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"717\" height=\"524\" src=\"https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/03\/image-106.png\" alt=\"\" class=\"wp-image-1340\" srcset=\"https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/03\/image-106.png 717w, https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/03\/image-106-300x219.png 300w\" sizes=\"(max-width: 717px) 100vw, 717px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">The <strong><em>Room Manager gameobject <\/em><\/strong>that handled the camera in the previous <a href=\"https:\/\/sites.wsagames.com\/et4g23\/2025\/03\/01\/prg-week-4\/\">PRG post<\/a>, needed to have extra features implemented into it. These features include:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Enemies spawn when and only when the player enters the room<\/li>\n\n\n\n<li>The player is locked in the room when they enter<\/li>\n\n\n\n<li>The Room Manager needs to keep track of how many enemies are in the room<\/li>\n\n\n\n<li>The player must be able to leave once the enemies are defeated<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The reason these features are required is due to research done from existing 2D Roguelite Dungeon games such as: Cult of the Lamb, The Binding of Isaac, Moonlighter etc. This research is documented in this <a href=\"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/existing-games\/\">Research Post<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To add all of these features, I created a new <em><strong>C# script <\/strong><\/em>called <strong>RoomManager<\/strong>, which would call a method called <strong><em>ActivateObjects()<\/em><\/strong> whenever the player would enter the room, this method would activate a gameobject called <strong><em>objectsToActivate<\/em><\/strong>, this gameobject would be the parent object of all of the room&#8217;s doors and enemies. Locking the player in the room and activating the enemies when the player entered.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the enemies were activated, the script would keep track of all of the enemies using a List and the <em><strong>GameObject.FindGameObjectsWithTag <\/strong><\/em>function. Once the enemies died, they would call the RoomManager script&#8217;s <em><strong>EnemyKilled() <\/strong><\/em>method which would remove them from the list of enemies in the room. Once this list reached a count of 0, the doors locking the player in would be deactivated.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"544\" src=\"https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/05\/image-91-1024x544.png\" alt=\"\" class=\"wp-image-1358\" srcset=\"https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/05\/image-91-1024x544.png 1024w, https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/05\/image-91-300x160.png 300w, https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/05\/image-91-768x408.png 768w, https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/05\/image-91-850x452.png 850w, https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/05\/image-91.png 1450w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Once the room Camera System was working, I developed it further to add to the rogue-lite game genre. The Room Manager gameobject that handled the camera in the previous PRG post, needed to have extra features implemented into it. These features include: The reason these features are required is due to research done from existing&#8230;<\/p>\n","protected":false},"author":28,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1347","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PRG - Pt 5 - E-Jay Tripoli (Year 2 Archive)<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PRG - Pt 5 - E-Jay Tripoli (Year 2 Archive)\" \/>\n<meta property=\"og:description\" content=\"Once the room Camera System was working, I developed it further to add to the rogue-lite game genre. The Room Manager gameobject that handled the camera in the previous PRG post, needed to have extra features implemented into it. These features include: The reason these features are required is due to research done from existing...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/\" \/>\n<meta property=\"og:site_name\" content=\"E-Jay Tripoli (Year 2 Archive)\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-10T20:44:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-10T21:20:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/03\/image-106.png\" \/>\n<meta name=\"author\" content=\"et4g23\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"et4g23\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/\"},\"author\":{\"name\":\"et4g23\",\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/#\\\/schema\\\/person\\\/56387a1dc0de878bb33ce4c478f22963\"},\"headline\":\"PRG &#8211; Pt 5\",\"datePublished\":\"2025-05-10T20:44:53+00:00\",\"dateModified\":\"2025-05-10T21:20:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/\"},\"wordCount\":260,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/wp-content\\\/uploads\\\/sites\\\/27\\\/2025\\\/03\\\/image-106.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/\",\"url\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/\",\"name\":\"PRG - Pt 5 - E-Jay Tripoli (Year 2 Archive)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/wp-content\\\/uploads\\\/sites\\\/27\\\/2025\\\/03\\\/image-106.png\",\"datePublished\":\"2025-05-10T20:44:53+00:00\",\"dateModified\":\"2025-05-10T21:20:44+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/#\\\/schema\\\/person\\\/56387a1dc0de878bb33ce4c478f22963\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/#primaryimage\",\"url\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/wp-content\\\/uploads\\\/sites\\\/27\\\/2025\\\/03\\\/image-106.png\",\"contentUrl\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/wp-content\\\/uploads\\\/sites\\\/27\\\/2025\\\/03\\\/image-106.png\",\"width\":717,\"height\":524},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/2025\\\/05\\\/10\\\/prg-pt-5\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PRG &#8211; Pt 5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/#website\",\"url\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/\",\"name\":\"E-Jay Tripoli (Year 2 Archive)\",\"description\":\"A documentation of my work for Year 2 - Studying Games Design and Art at the University of Southampton\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/#\\\/schema\\\/person\\\/56387a1dc0de878bb33ce4c478f22963\",\"name\":\"et4g23\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/477d521b3b86e4ef27181bf784cd1a145a38c7d6a0154a478d3c858d26298bec?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/477d521b3b86e4ef27181bf784cd1a145a38c7d6a0154a478d3c858d26298bec?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/477d521b3b86e4ef27181bf784cd1a145a38c7d6a0154a478d3c858d26298bec?s=96&d=mm&r=g\",\"caption\":\"et4g23\"},\"url\":\"https:\\\/\\\/sites.wsagames.com\\\/et4g23\\\/author\\\/et4g23\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PRG - Pt 5 - E-Jay Tripoli (Year 2 Archive)","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/","og_locale":"en_US","og_type":"article","og_title":"PRG - Pt 5 - E-Jay Tripoli (Year 2 Archive)","og_description":"Once the room Camera System was working, I developed it further to add to the rogue-lite game genre. The Room Manager gameobject that handled the camera in the previous PRG post, needed to have extra features implemented into it. These features include: The reason these features are required is due to research done from existing...","og_url":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/","og_site_name":"E-Jay Tripoli (Year 2 Archive)","article_published_time":"2025-05-10T20:44:53+00:00","article_modified_time":"2025-05-10T21:20:44+00:00","og_image":[{"url":"https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/03\/image-106.png","type":"","width":"","height":""}],"author":"et4g23","twitter_card":"summary_large_image","twitter_misc":{"Written by":"et4g23","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/#article","isPartOf":{"@id":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/"},"author":{"name":"et4g23","@id":"https:\/\/sites.wsagames.com\/et4g23\/#\/schema\/person\/56387a1dc0de878bb33ce4c478f22963"},"headline":"PRG &#8211; Pt 5","datePublished":"2025-05-10T20:44:53+00:00","dateModified":"2025-05-10T21:20:44+00:00","mainEntityOfPage":{"@id":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/"},"wordCount":260,"commentCount":0,"image":{"@id":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/#primaryimage"},"thumbnailUrl":"https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/03\/image-106.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/","url":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/","name":"PRG - Pt 5 - E-Jay Tripoli (Year 2 Archive)","isPartOf":{"@id":"https:\/\/sites.wsagames.com\/et4g23\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/#primaryimage"},"image":{"@id":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/#primaryimage"},"thumbnailUrl":"https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/03\/image-106.png","datePublished":"2025-05-10T20:44:53+00:00","dateModified":"2025-05-10T21:20:44+00:00","author":{"@id":"https:\/\/sites.wsagames.com\/et4g23\/#\/schema\/person\/56387a1dc0de878bb33ce4c478f22963"},"breadcrumb":{"@id":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/#primaryimage","url":"https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/03\/image-106.png","contentUrl":"https:\/\/sites.wsagames.com\/et4g23\/wp-content\/uploads\/sites\/27\/2025\/03\/image-106.png","width":717,"height":524},{"@type":"BreadcrumbList","@id":"https:\/\/sites.wsagames.com\/et4g23\/2025\/05\/10\/prg-pt-5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sites.wsagames.com\/et4g23\/"},{"@type":"ListItem","position":2,"name":"PRG &#8211; Pt 5"}]},{"@type":"WebSite","@id":"https:\/\/sites.wsagames.com\/et4g23\/#website","url":"https:\/\/sites.wsagames.com\/et4g23\/","name":"E-Jay Tripoli (Year 2 Archive)","description":"A documentation of my work for Year 2 - Studying Games Design and Art at the University of Southampton","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sites.wsagames.com\/et4g23\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sites.wsagames.com\/et4g23\/#\/schema\/person\/56387a1dc0de878bb33ce4c478f22963","name":"et4g23","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/477d521b3b86e4ef27181bf784cd1a145a38c7d6a0154a478d3c858d26298bec?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/477d521b3b86e4ef27181bf784cd1a145a38c7d6a0154a478d3c858d26298bec?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/477d521b3b86e4ef27181bf784cd1a145a38c7d6a0154a478d3c858d26298bec?s=96&d=mm&r=g","caption":"et4g23"},"url":"https:\/\/sites.wsagames.com\/et4g23\/author\/et4g23\/"}]}},"_links":{"self":[{"href":"https:\/\/sites.wsagames.com\/et4g23\/wp-json\/wp\/v2\/posts\/1347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.wsagames.com\/et4g23\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wsagames.com\/et4g23\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/et4g23\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/et4g23\/wp-json\/wp\/v2\/comments?post=1347"}],"version-history":[{"count":3,"href":"https:\/\/sites.wsagames.com\/et4g23\/wp-json\/wp\/v2\/posts\/1347\/revisions"}],"predecessor-version":[{"id":1362,"href":"https:\/\/sites.wsagames.com\/et4g23\/wp-json\/wp\/v2\/posts\/1347\/revisions\/1362"}],"wp:attachment":[{"href":"https:\/\/sites.wsagames.com\/et4g23\/wp-json\/wp\/v2\/media?parent=1347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wsagames.com\/et4g23\/wp-json\/wp\/v2\/categories?post=1347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wsagames.com\/et4g23\/wp-json\/wp\/v2\/tags?post=1347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}