Civil-Data / Bomb-IT

Project is a school project in software development.
BSD 2-Clause "Simplified" License
3 stars 0 forks source link

Scripts for inventory management. #29

Open Stocken99 opened 1 year ago

Stocken99 commented 1 year ago

Add script for placement of items and script for switching items in inventory. Which basically means the selecting and placement of items. This will also add an inventory system.

Stocken99 commented 1 year ago

Documentation

Inventory Description.

Inventories will give the player the option to choose whenever they want to use their items. The inventory will have a fixed amount of spaces. To begin with this value will be 5. Each item will occupy one space and do not stack. When an item is placed then the item is removed from the inventory the game.

The bomb-item is a special case. This item will always occupy the first place in the inventory and have an unlimited amount of uses. Ie, this item will not be removed from the game when it is placed.

Implementation

Will be an array of items in the player class. Items shall be added to the array when a player moves over the item on the map. Items shall be removed from array via the PlaceItem.cs - script

OBS! See documentation for Items and powerups #21