delaford / game

⚔️ An online JavaScript 2D Medieval RPG.
https://play.delaford.com/?useGuestAccount
MIT License
1.32k stars 843 forks source link

Image quantity fixed on dropped items #174

Closed cnmullins closed 2 years ago

cnmullins commented 2 years ago

Dropped items graphic now reflects the quantity. Code has been added to the drawItems() function in Map so that the proper tile column is selected for the appropriate quantity amount.

Description

Players now have immediate feedback for how much of a given quantity the player will receive upon taking an item.

Related Issue

Stacked quantity does not reflect on game map #115

Motivation and Context

Bug fix/extension of an existing feature.

How Has This Been Tested?

Q&A (manual testing) Just dropped coins of varying quantities around the map (see below).

Screenshots (if appropriate):

coinstacks

Types of change

naknode commented 2 years ago

Thank you!