Files
blessfrey-bottle/src/blessfrey-gdd/floor-item
T

36 lines
1.5 KiB
Plaintext

<h2>description </h2>
<p>Floor items are the representation of an item that spawns in the environment, drops from opponents, and can be picked up. They are technically tangible entities. <br></p>
<br>
<h2>structure </h2>
<p><ul>
<li>Node2D - $ThreeLeafClover (floor_item.gd, inherits from tangible.gd)</li>
<ul><li>Node2D - $Body (tangibleBody.gd, inherits from mobileBody.gd)</li>
<ul><li>Area2D - $Sprite (Items/Components/Sprite.gd)</li>
<ul><li>Sprite - $Sprite</li>
<ul><li>PanelContainer - $Highlight (the <a href="/blessfrey-gdd/highlight">highlight scene</a></li></ul>
<li>CollisionPolygon2D - $CollisionPolygon2D</li></ul>
</ul>
</ul>
</ul></p>
<br>
<h2>variables</h2>
<p><ul>
<li>ITEM_SCENE_NAME, a constant reference to the <a href="/blessfrey-gdd/base-item">base item</a>'s path within the folder </li>
<li>item_scene, the base item's scene, loaded from ITEM_SCENE_NAME </li>
<li>item, the <a href="/blessfrey-gdd/base-item">base item</a>. It's instanced from item_scene and added as a child of the floor item.
<li>display_name, the name seen in the <a href="/blessfrey-gdd/highlight">highlight</a> label, <a href="/blessfrey-gdd/inventory">inventory</a> listings, etc. </li>
<br>
<h2>logic </h2>
<p> <br></p>
<br>
<br>
<h2>challenges/known issues </h2>
<p> <br></p>
<br>
<h2>works for...</h2>
<ul>
<li>???✓ </li>
<li>???✗ </li>
</ul>