"Rule of 99" Dictionary Based Inventory

2

Attached Files

The following files have been attached to this tutorial:

.capx

Stats

3,676 visits, 5,361 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 18 May, 2014. Last updated 19 Feb, 2019

This project demonstrates the creation of a "Rule of 99" inventory system, you can read more here.

The map displays a boat and a couple of keys that are automatically added to inventory when the hero collides with them. When an item is collided with, the dictionary object, used to maintain inventory, adds the new key, if needed, and then increments the value. The maximum allowed per item count is controlled by a global variable and is set to 99.

To display the inventory screen you can either click the hero portrait in the upper left corner or press the Z key.

.CAPX
  • 0 Comments

Want to leave a comment? Login or Register an account!