globalcitizen / zomia

Roguelike game set in ancient Yunnan.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement throwing

globalcitizen opened this issue · comments

Pebbles (or other things) be used to distract monsters, activate devices, or damage monsters as a weapon (weak). Possibly also could be used with a sling or similar for greater damage/range.

I am thinking of using the ***** key (as it's near the proper numpad for oldschool players).

The first thing to do, if taking a brogue-like approach, would be to isolate a new input mode and pre-set the target to the nearest (hostile) NPC. The user can then move the target square with the normal movement (ie. arrow) keys.

If the user only has one kind of throwable or an equipped throwable (like a sling or bow), then it pre-selects that and the object/weapon pre-selection and remaining ammunition levels are displayed while in this input mode. The user can press escape to exit the mode.

If the user has multiple throwables, then they are given a modal dialog.