{"id":170,"date":"2025-10-09T09:00:00","date_gmt":"2025-10-09T09:00:00","guid":{"rendered":"https:\/\/sites.wsagames.com\/stw1g24\/?p=170"},"modified":"2026-01-11T15:52:34","modified_gmt":"2026-01-11T15:52:34","slug":"attempting-to-recreate-a-mechanic-from-portal-in-one-week","status":"publish","type":"post","link":"https:\/\/sites.wsagames.com\/stw1g24\/2025\/10\/09\/attempting-to-recreate-a-mechanic-from-portal-in-one-week\/","title":{"rendered":"Attempting to recreate a mechanic from Portal in one week"},"content":{"rendered":"\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Review <\/strong>&#8211;<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Narrative \u2013 <\/strong>Silent protagonist all dialogue comes from glados. Dry snarky humour is used to make it entertain and break up the levels. Environmental storytelling is used to reveal things about the facility&nbsp;<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Mechanics \u2013<\/strong> Physics takes precedent, it\u2019s ultimately a puzzle game solving harder puzzles as you get through the levels. It\u2019s a first-person shooter game with a portal gun. The game encourages creativity by giving the player no restrictions levels that can be solved creatively.&nbsp;<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Visuals \u2013 <\/strong>Stark white testing facility, science lab. Prison. You feel like a lab rat being tested on. Orange jumpsuit reminiscent of prison, industrial feel behind the scenes, cleanliness is a facade. Evil corporation&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Recreating the mechanic &#8211;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main mechanic in Portal is the portal gun. This will be incredibly hard to replicate the teleporting mechanic in one week along with uni, so I have settled on trying to have a working gun that shoots flat capsules onto a wall. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To do this I followed a number of different youtube tutorials. They are listed below<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/youtu.be\/1rNOB8hjy0I?si=InYD3bE0c7oUMpNz\">https:\/\/youtu.be\/1rNOB8hjy0I?si=InYD3bE0c7oUMpNz<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/youtu.be\/vj3kV41ELxw?si=pnR5Np-kw7OyLH-O\">https:\/\/youtu.be\/vj3kV41ELxw?si=pnR5Np-kw7OyLH-O<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/youtu.be\/PkGjYig8avo?si=RuTBOuS6y4NGTkEf\">https:\/\/youtu.be\/PkGjYig8avo?si=RuTBOuS6y4NGTkEf<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/youtu.be\/yp9DBVDam5Q?si=X4RkfDui9fkVAVEB\">https:\/\/youtu.be\/yp9DBVDam5Q?si=X4RkfDui9fkVAVEB<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">I began by making a quick moveable character that was a capsule with a camera inside so it would be first-person  POV. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I then made the gun, just a simple rectangle placed near where an arm would be. For the bullet and portal itself, I made them as prefabs. The portal is just a flattened capsule. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"323\" src=\"https:\/\/sites.wsagames.com\/stw1g24\/wp-content\/uploads\/sites\/62\/2025\/10\/Screenshot-2025-10-03-213513-1024x323.png\" alt=\"\" class=\"wp-image-529\" srcset=\"https:\/\/sites.wsagames.com\/stw1g24\/wp-content\/uploads\/sites\/62\/2025\/10\/Screenshot-2025-10-03-213513-1024x323.png 1024w, https:\/\/sites.wsagames.com\/stw1g24\/wp-content\/uploads\/sites\/62\/2025\/10\/Screenshot-2025-10-03-213513-300x95.png 300w, https:\/\/sites.wsagames.com\/stw1g24\/wp-content\/uploads\/sites\/62\/2025\/10\/Screenshot-2025-10-03-213513-768x242.png 768w, https:\/\/sites.wsagames.com\/stw1g24\/wp-content\/uploads\/sites\/62\/2025\/10\/Screenshot-2025-10-03-213513-1536x484.png 1536w, https:\/\/sites.wsagames.com\/stw1g24\/wp-content\/uploads\/sites\/62\/2025\/10\/Screenshot-2025-10-03-213513-2048x646.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"495\" src=\"https:\/\/sites.wsagames.com\/stw1g24\/wp-content\/uploads\/sites\/62\/2025\/10\/Screenshot-2025-10-08-132039-1024x495.png\" alt=\"\" class=\"wp-image-530\" srcset=\"https:\/\/sites.wsagames.com\/stw1g24\/wp-content\/uploads\/sites\/62\/2025\/10\/Screenshot-2025-10-08-132039-1024x495.png 1024w, https:\/\/sites.wsagames.com\/stw1g24\/wp-content\/uploads\/sites\/62\/2025\/10\/Screenshot-2025-10-08-132039-300x145.png 300w, https:\/\/sites.wsagames.com\/stw1g24\/wp-content\/uploads\/sites\/62\/2025\/10\/Screenshot-2025-10-08-132039-768x372.png 768w, https:\/\/sites.wsagames.com\/stw1g24\/wp-content\/uploads\/sites\/62\/2025\/10\/Screenshot-2025-10-08-132039.png 1480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This is a constant bug I was getting where the portals spawned sideways, after enough messing around with the transforms of the prefab it fixed itself, I could not tell you how. <\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"720\" style=\"aspect-ratio: 1280 \/ 720;\" width=\"1280\" controls src=\"https:\/\/sites.wsagames.com\/stw1g24\/wp-content\/uploads\/sites\/62\/2025\/10\/Portal-gun-test-Made-with-Clipchamp.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After a week of work and scouring the internet for help this is where I got it to, I have a gun that fires a projectile, when that hits a surface a portal prefab spawns. Unfortunately I could not get the actual teleporting mechanic to work but as I do not often work in 3D I am proud of myself that I managed to get it to this point.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This was overall a fun exercise that took me far out of my comfort zone.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-f56f613f wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/sites.wsagames.com\/stw1g24\/2025\/11\/05\/ludic-lab-whispers-project\/\">&lt; &#8211; Previous Post<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-right wp-block-paragraph\"><a href=\"https:\/\/sites.wsagames.com\/stw1g24\/2025\/10\/09\/game-poem-with-twine\/\">Next Post &#8211; &gt;<\/a><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Review &#8211; Narrative \u2013 Silent protagonist all dialogue comes from glados. Dry snarky humour is used to make it entertain and break up the levels. Environmental storytelling is used to reveal things about the facility&nbsp; Mechanics \u2013 Physics takes precedent, it\u2019s ultimately a puzzle game solving harder puzzles as you get through the levels. It\u2019s [&hellip;]<\/p>\n","protected":false},"author":53,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-170","post","type-post","status-publish","format-standard","hentry","category-personal-development"],"_links":{"self":[{"href":"https:\/\/sites.wsagames.com\/stw1g24\/wp-json\/wp\/v2\/posts\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.wsagames.com\/stw1g24\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wsagames.com\/stw1g24\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/stw1g24\/wp-json\/wp\/v2\/users\/53"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/stw1g24\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":7,"href":"https:\/\/sites.wsagames.com\/stw1g24\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":1217,"href":"https:\/\/sites.wsagames.com\/stw1g24\/wp-json\/wp\/v2\/posts\/170\/revisions\/1217"}],"wp:attachment":[{"href":"https:\/\/sites.wsagames.com\/stw1g24\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wsagames.com\/stw1g24\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wsagames.com\/stw1g24\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}