A work in progress for a mod of Hungry Harry 3D featuring a feminine Harry called Mary
Story
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
Looks nice! I left you a comment on the Hungry Harry thread for how to edit levels.
If you want to limit hunger to 100, a hacky way to do it is to just add the following line to _update:
health = min(100,health) |
but want to make it so the second ground type to be deathpits
@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.
And also your idea seems less punishing for the player and I wouldn't need to make a lives system
The following code is in actor:collide() . You will need to somehow modify this line:
--force upwards from negative space if (self.z < 0) self.dz,self.z,self.g,self.w[4]=0,ff,true,true |
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[4] = true -- this is another flag saying you landed this frame hunger += -20 -- lose a chunk of health end |
That should get you going
I want this because I want something more action like and also castle theme will have lava instead
"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]