lbehr19 / hello-world

My code portfolio
0 stars 0 forks source link

Attack not working #11

Closed lbehr19 closed 5 years ago

lbehr19 commented 5 years ago

The user's attack function (activated by pressing space) is not always working, resulting in either death (as the glitch moves into the player's space) or an impasse (as glitch stands in the way of the goal).

lbehr19 commented 5 years ago

Could be caused by something in the Main class? probably something to do with the key event handler.

lbehr19 commented 5 years ago

Did not read my own code - there's a 'sword sharpness' stat, meaning that attacks have a set probability of succeeding, not guaranteed. But since attacks are close range, a failed attack means that the player dies regardless of their skill. But the original issue is a non-issue, so I'm closing this bug until further notice.