Update Code Docs
This commit is contained in:
parent
bd65c6c24d
commit
25805d40e5
41 changed files with 10977 additions and 2287 deletions
13
sites/codesnippets/Inventory.qmd
Normal file
13
sites/codesnippets/Inventory.qmd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
title: "Inventory"
|
||||
---
|
||||
|
||||
The Inventory uses a scalable, circular array of widget components the user can put objects in and draw objects out. When the inventory is opened, the player moves their hand towards a widget, which then gets activated. Depending of the content of the widget and content of the hand, an action (put in, pull out, replace) is triggered on inventory close. Compared to [approaches based on a line trace/widget interactor](https://www.youtube.com/watch?v=YE0sfJyraws), I use the distance to the hand for a quicker and "sloppier" interaction.
|
||||
|
||||
Item Data is handled via an Item Data Component, following the guidance of [Ryan Laleys Inventory System Tutorial Series](https://www.youtube.com/watch?v=vHT4MhmwacE&list=PL4G2bSPE_8umjCYXbq0v5IoV-Wi_WAxC3&index=1). The Item Data is drawn from a Data Table.
|
||||
|
||||
|
||||
|
||||
```{=html}
|
||||
<iframe width="100%" height="500" src="https://blueprintue.com/render/-azlwrm2/" scrolling="no" allowfullscreen></iframe>
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue