Once the player approaches the shop, they are prompted to press ‘E’ to open the shop. This will then prompt then with an interface to either buy or sell. The buy menu is currently in place but has no functionality as this is a slightly larger job than the ability to sell.
Upon clicking sell, the interface updates to a selling
screen. Slots dynamically appear based on the items currently in the Player’s
inventory.
(Fig. 2) shows
what the slots look like and as can be seen, the player has two items in their
inventory, which have loaded into the shop interface. Upon clicking the ‘Sell’
button underneath any of the items, the items will be removed from the
inventory and the player will granted an amount of
gold depending on the items worth. With the addition of the shop, the
player can now mine and sell ores. The next task for me is to give the player a
way to navigate the level, as currently when they dig down there is no way to
get back up. This ties in with getting the buy menu updated, as it’ll give me
an item to use as a placeholder.
Figure 2 |
No comments:
Post a Comment