nsmryan / RustRoguelike

This Rust Roguelike is a Roguelike written in Rust.
17 stars 3 forks source link

Player sprite after attacking #406

Closed MicroChasm closed 2 years ago

MicroChasm commented 2 years ago

After attacking, specifically with the spear, the "golem impression" sprite is overlaid on top of the player sprite for one turn, until the player does something.

nsmryan commented 2 years ago

This was a weird one, but easy to find.

What happens is that attacking creates some sound. The spear is the only weapon where the sound can hit the player from a distance. The sound comes from the player, but does not originate from the player's position, so the player saw this as a sound propagating to them. If the tile was the player position, this was not caught.

The change is that impressions can no longer come from the player.

nsmryan commented 2 years ago

Are there any other player sprite issues with attacking?

MicroChasm commented 2 years ago

Currently, when I attack with the spear it shows a shadow of the player sprite on the tile that is attacked, instead of the attacking animation.