A work in progress for a mod of Hungry Harry 3D featuring a feminine Harry called Mary
The mushroom gang striked again, so Harry got at the shroom lord's castle, but he got kidnapped.
So now Mary has to go save him. Think of it as a sequel to the original hungry Harry 3D.
The story is narrated at the start of every level btw
I won't release any versions until it is completely different to the original
@Dogerizer it depends on exactly what you want to do. If you want to make the base ground a death pit, you could probably do the following:
- Remove the lines on the ground
- Set the minimum height Harry can fall to to some bigger negative value, like-80 instead of zero
- Set health to 0 if you got negative 80
Note, I specifically designed the original game with no death pits, and the ground lines kind of help to let the player get their bearings. Also, since the game does not have lives right now, you may want to implement a lives system so that death is not so bad. Alternatively, if they fall down a pit, maybe you can just teleport them to the start of the level and take away 20 health. I like that idea better actually.
You don't necessarily need to make the floor -80. I recommend just changing the line I showed above to the following:
if self.z < 0 then self.z = levelstart.z -- these will warp you to the start of the level self.x = levelstart.x self.y = levelstart.y self.dz = 0 self.g = true -- this is the grounded flag self.w = true -- this is another flag saying you landed this frame hunger += -20 -- lose a chunk of health end
That should get you going
"levelstart" was just some pseudo-code on my part. You will need to figure out how to calculate what those actually are.
When a level is loaded, Harry is placed in some specific location. You will need to save those values when Harry is created (Harry.StartX, for example) and then stick them where I put the "levelstart" values.
[Please log in to post a comment]