jleahey / Minicraft

A Minecraft 2D Demake
http://gamejolt.com/freeware/games/adventure/minicraft/2818/
Other
9 stars 0 forks source link

Life Stats #1

Open jleahey opened 12 years ago

jleahey commented 12 years ago

Add falling damage, drowning, and hearts.

perimosocordiae commented 11 years ago

Fall damage added as of commit dd04ab3d0b2fec5c75a1d8820ae77d0817c2fe09, still really bare bones.

jleahey commented 11 years ago

Updated fall damage to linear scaling in: 206977a.

perimosocordiae commented 11 years ago

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.

jleahey commented 11 years ago

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.

perimosocordiae commented 11 years ago

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.

  1. Death: We might take a departure from Minecraft by keeping a high scores list, and not allowing players to respawn. This mechanic works pretty well in other games (Binding of Isaac, Nethack, etc), though it would require inventing some sort of scoring mechanic. We might also simply adopt the old-school MC scoreless mode (0xE0) with infinite respawns, which might be easier in the short term.
  2. Health Regen: Seems like a simple thing to add to the logic in gameLoop, maybe with a separate counter in the Player class (unless we want mobs to be able to regenerate health as well?)
perimosocordiae commented 11 years ago

Just noticed a bug: jump into water, allow yourself to sink to the bottom, take damage as if there had been no water.