Git Product home page Git Product logo

Comments (6)

perimosocordiae avatar perimosocordiae commented on August 27, 2024

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

from minicraft.

jleahey avatar jleahey commented on August 27, 2024

Updated fall damage to linear scaling in: 206977a.

from minicraft.

perimosocordiae avatar perimosocordiae commented on August 27, 2024

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.

from minicraft.

jleahey avatar jleahey commented on August 27, 2024

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//issues/1#issuecomment-11624685.

from minicraft.

perimosocordiae avatar perimosocordiae commented on August 27, 2024

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?)

from minicraft.

perimosocordiae avatar perimosocordiae commented on August 27, 2024

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

from minicraft.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.