OpenLearningQuest / game

An educational game where players build competencies as part of an interactive story.
GNU Affero General Public License v3.0
0 stars 0 forks source link

Add simple inventory #12

Open brylie opened 1 year ago

brylie commented 1 year ago

We aim to develop a comprehensive inventory system for our educational game that allows players to collect, manage, and use various items throughout different locations, like their home and school. The inventory system will support interactions such as adding, removing, and using items and will feature a dynamic grid that expands as the player progresses in the game.

Design Goals

Key Components

  1. Global Script (Inventory Manager): Manages all inventory-related functions, including item tracking, slot management, and interaction rules.
  2. Inventory Item: Each item's behavior and properties, including pickup and use effects.
  3. Item Spawner: Controls the spawning of items within the game world for players to collect.
  4. Interaction Sensor: Detects player interactions with items enabling item pickup.
  5. Inventory Grid: A dynamic grid that organizes and displays items within the player's UI.
  6. Inventory UI: A graphical interface that players use to interact with their inventory, designed for clarity and ease of use.

Implementation Considerations

Development Tips

Reference Material

For guidance on implementing a dynamic slot-based inventory system in Godot 4, please refer to the following YouTube playlist which provides a detailed tutorial series: Godot 4 Dynamic Slot-Based Inventory System Series

Action Items

Please carefully consider the implementation of this feature as it is central to the gameplay experience and integral to achieving the educational objectives of our game.