Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

You’ve got an Underflow.

10 - 15 = 250.

When a byte goes below 0 it turns into 255.

You should check that the HP is greater or equal than the damage, if it is, substract 15 from hp, else, set it to 0.