Rushwind13 / JMoria

My from-scratch implementation of a Roguelike game that will be an homage to IMoria
4 stars 4 forks source link

Implement ranged attacks #39

Open mschober opened 1 month ago

mschober commented 1 month ago

GIVEN I have a player AND The player has a ITEM_TYPE_BOW equipped AND The player has targeted a position AND The player has 2 arrows in inventory WHEN The player issues the Fire command THEN The player has 1 arrow in inventory AND The shot arrow moves toward the targeted position AND The shot arrow can collide AND The shot arrow can end up on the floor AND The shot arrow will only go a certain distance (or less)

AC:

_Originally posted by @Rushwind13 in https://github.com/Rushwind13/JMoria/pull/35#discussion_r1807980631_

Rushwind13 commented 3 days ago

Targeting added with https://github.com/Rushwind13/JMoria/pull/132