Comments (6)
Fall damage added as of commit dd04ab3, still really bare bones.
from minicraft.
Updated fall damage to linear scaling in: 206977a.
from minicraft.
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.
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.
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.
- 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. - 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.
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)
- Stand on top of wood
- Tile tinting HOT 6
- Achievements / Statistics
- Make inventories per-LivingEntity, instead of global HOT 1
- Load button crashes when no save file is present
- Toss objects toward the mouse HOT 1
- Add torches HOT 4
- Add Lava
- Port to Android
- Graphical glitch with horizontal + vertical black lines HOT 7
- Add Furnaces
- Allow placement of torches inside player's bounding box
- Can I add this to my Minicraft compilation?
- Escape key doesn't work on Mac HOT 2
- load item definitions from an external file HOT 1
- Use numeric IDs for items HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minicraft.