description
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.
structure
- Node2D - $ThreeLeafClover (floor_item.gd, inherits from tangible.gd)
- Node2D - $Body (tangibleBody.gd, inherits from mobileBody.gd)
- Area2D - $Sprite (Items/Components/Sprite.gd)
- Sprite - $Sprite
- CollisionPolygon2D - $CollisionPolygon2D
variables
- ITEM_SCENE_NAME, a constant reference to the base item's path within the folder
- item_scene, the base item's scene, loaded from ITEM_SCENE_NAME
- item, the base item. It's instanced from item_scene and added as a child of the floor item.
- display_name, the name seen in the highlight label, inventory listings, etc.
logic
challenges/known issues
works for...