Open jleahey opened 12 years ago
Fall damage added as of commit dd04ab3d0b2fec5c75a1d8820ae77d0817c2fe09, still really bare bones.
Updated fall damage to linear scaling in: 206977a.
Ah, good fix. Another issue is a bit more sneaky: since each entity has hit-points, falling saplings also take fall damage! Perhaps there should be one class between Entity and Player, for living things that can be killed.
I definitely agree. There should be some LivingEntity subclass which has HP and takes damage.
On Friday, December 21, 2012, CJ Carey wrote:
Ah, good fix. Another issue is a bit more sneaky: since each entity has hit-points, falling saplings also take fall damage! Perhaps there should be one class between Entity and Player, for living things that can be killed.
— Reply to this email directly or view it on GitHubhttps://github.com/jleahey/Minicraft/issues/1#issuecomment-11624685.
We now have hearts, fall damage, drowning damage, and bubbles! The UI for the hearts and bubbles is fairly unpolished, especially because bubbles blend in with the water color.
The last two items to address before closing this issue are death and health regeneration.
0xE0
) with infinite respawns, which might be easier in the short term.gameLoop
, maybe with a separate counter in the Player class (unless we want mobs to be able to regenerate health as well?)Just noticed a bug: jump into water, allow yourself to sink to the bottom, take damage as if there had been no water.
Add falling damage, drowning, and hearts.