{"id":161,"date":"2021-05-25T21:34:49","date_gmt":"2021-05-25T20:34:49","guid":{"rendered":"http:\/\/firstyearvr.myblog.arts.ac.uk\/?p=161"},"modified":"2021-05-26T11:02:30","modified_gmt":"2021-05-26T10:02:30","slug":"serious-game-update-2","status":"publish","type":"post","link":"https:\/\/firstyearvr.myblog.arts.ac.uk\/?p=161","title":{"rendered":"Serious Game &#8211; Update #2"},"content":{"rendered":"\n<p>My new portable hard drive arrived today so I have been redoing the inventory system but with a different video. The original video I was following can be found at <a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/watch?v=2WnAOV7nHW0&amp;list=PLByRsB4opasAJsJB8HnSCjVYgLjO8knbs&amp;index=1&amp;t=597s\" target=\"_blank\">https:\/\/www.youtube.com\/watch?v=2WnAOV7nHW0&amp;list=PLByRsB4opasAJsJB8HnSCjVYgLjO8knbs&amp;index=1&amp;t=597s<\/a>. The problem with this system is that it&#8217;s for a 2D world and I imagine I could adjust it for a 3D world just fine but I actually found a series of videos for a 3D world after losing the progress. The new videos can be found at <a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/watch?v=_IqTeruf3-s&amp;list=PLJWSdH2kAe_Ij7d7ZFR2NIW8QCJE74CyT&amp;index=2\" target=\"_blank\">https:\/\/www.youtube.com\/watch?v=_IqTeruf3-s&amp;list=PLJWSdH2kAe_Ij7d7ZFR2NIW8QCJE74CyT&amp;index=2<\/a>.<\/p>\n\n\n\n<p>The system shown in the new videos allows me to create new items in the Unity editor instead of having to go into the code and type out several lines just to add one item.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-7.png\" alt=\"\" class=\"wp-image-162\" width=\"574\" height=\"323\" srcset=\"https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-7.png 1024w, https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-7-300x169.png 300w, https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-7-768x432.png 768w, https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-7-1536x864.png 1536w\" sizes=\"auto, (max-width: 574px) 100vw, 574px\" \/><\/figure>\n\n\n\n<p>I am following the videos still so that I understand what I am doing before I adjust everything to fit my game, so the items I can create in the image above aren&#8217;t the items that will be in the game when I&#8217;ve finished. Another good thing about this approach is that I can create multiple inventories for different objects without needing to code them myself, meaning I can save the contents to any object in the world that I need to. In the case of my game I will need inventories for the first aid kit and the emergency oxygen kit.<\/p>\n\n\n\n<p>In the images below are samples of code needed to create the new objects and the inventory system.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"334\" src=\"https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-8.png\" alt=\"\" class=\"wp-image-163\" srcset=\"https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-8.png 1024w, https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-8-300x98.png 300w, https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-8-768x250.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"257\" src=\"https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-9.png\" alt=\"\" class=\"wp-image-164\" srcset=\"https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-9.png 1024w, https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-9-300x75.png 300w, https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-9-768x193.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"466\" src=\"https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-10.png\" alt=\"\" class=\"wp-image-165\" srcset=\"https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-10.png 1024w, https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-10-300x136.png 300w, https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-10-768x349.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"414\" src=\"https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-11.png\" alt=\"\" class=\"wp-image-166\" srcset=\"https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-11.png 1024w, https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-11-300x121.png 300w, https:\/\/firstyearvr.myblog.arts.ac.uk\/files\/2021\/05\/image-11-768x310.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I have also been searching for 3D models to use for the items in the inventories and most I have found using this site: <a rel=\"noreferrer noopener\" href=\"https:\/\/www.cgtrader.com\/free-3d-models?keywords=first+aid&amp;low_poly=1&amp;file_types%5B%5D=83&amp;file_types%5B%5D=5\" target=\"_blank\">https:\/\/www.cgtrader.com\/free-3d-models?keywords=first+aid&amp;low_poly=1&amp;file_types%5B%5D=83&amp;file_types%5B%5D=5<\/a>. There are still a few I have yet to find and I am having trouble doing so, but I have found that my brain doesn&#8217;t like modelling objects itself. If I can&#8217;t find something at all then I will have to model it myself, but before that I will probably end up trying to find many ways to get arround modelling things. Links to models I am using can be found in the padlet here: <a rel=\"noreferrer noopener\" href=\"https:\/\/artslondon.padlet.org\/whobbs0120191\/6ek6uuczz05s1kkn\" target=\"_blank\">https:\/\/artslondon.padlet.org\/whobbs0120191\/6ek6uuczz05s1kkn<\/a>. The assets I am using to make the beach area shown in the first image can also be found on this padlet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My new portable hard drive arrived today so I have been redoing the inventory system but with a different video&#8230;. <a class=\"read-more\" href=\"https:\/\/firstyearvr.myblog.arts.ac.uk\/?p=161\">Read More <span>&raquo;<\/span><\/a><\/p>\n","protected":false},"author":42406,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[13],"tags":[14],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-vr-game","tag-lifeguard-game"],"_links":{"self":[{"href":"https:\/\/firstyearvr.myblog.arts.ac.uk\/index.php?rest_route=\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/firstyearvr.myblog.arts.ac.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/firstyearvr.myblog.arts.ac.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/firstyearvr.myblog.arts.ac.uk\/index.php?rest_route=\/wp\/v2\/users\/42406"}],"replies":[{"embeddable":true,"href":"https:\/\/firstyearvr.myblog.arts.ac.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161"}],"version-history":[{"count":0,"href":"https:\/\/firstyearvr.myblog.arts.ac.uk\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions"}],"wp:attachment":[{"href":"https:\/\/firstyearvr.myblog.arts.ac.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/firstyearvr.myblog.arts.ac.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/firstyearvr.myblog.arts.ac.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}