{"id":14,"date":"2022-04-22T01:19:01","date_gmt":"2022-04-22T01:19:01","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/nichojos\/?p=14"},"modified":"2022-04-22T01:19:01","modified_gmt":"2022-04-22T01:19:01","slug":"you-got-an-item","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/nichojos\/2022\/04\/22\/you-got-an-item\/","title":{"rendered":"You got an item"},"content":{"rendered":"\n<p>Most of my project work this week has been all about setting up an inventory for our escape room players. I first started off by just getting a rough outline of what the inventory screen would look like. My team and I thought about it and decided that we really only anticipate needing an inventory size of 8. I setup the framework of the inventory screen based off that number, so I hope it turns out to be correct. It&#8217;ll definitely take a good bit of UI rework if it isn&#8217;t large enough. <\/p>\n\n\n\n<p>After creating the inventory screen, I had to have a way to populate it. I setup a player inventory with some simple add\/remove item functionality. When the player looks around the room and sees something that they would like to pick up, they just have to click on it and it&#8217;ll be added to their inventory. Then they can open up the inventory screen and see information about the item that they just picked up. If they need to for solving a certain puzzle, they can then equip the item and use it. <\/p>\n\n\n\n<p>I&#8217;m still working on the actual using it part though. It&#8217;s not going to do us much good to pick up this random book that we found on the floor if we can&#8217;t put it back into the bookshelf where it belongs. I think I have a good idea of how I want to implement the item usage interactions, but I guess I&#8217;ll see how that turns out. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Most of my project work this week has been all about setting up an inventory for our escape room players. I first started off by just getting a rough outline of what the inventory screen would look like. My team and I thought about it and decided that we really only anticipate needing an inventory [&hellip;]<\/p>\n","protected":false},"author":12327,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/users\/12327"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":1,"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":15,"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/posts\/14\/revisions\/15"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/nichojos\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}