Grench
Forum Addict!
- Joined
- Oct 3, 2008
- Messages
- 6,629
Ahh - sorry, didn't know that physics were out. You're welcome to use or loose ideas of course.Nice idea, but it would require too much code changes. At the moment, there is no real physics: the lemmings don't have momentum and there is no real gravity, they just have a direction (left or right) and fall down one or two pixels if there's no floor below them. So bouncing off in random trajectories would require a lot of changes, and it would probably take some effort to optimize the code so that all of that can be computed fast enough for all of those nanolemmings.Since 'dying in creative ways' is a Lemmings tradition, I have an odd twist idea...
What happens to the nano lemmings now when they die from a fall? Disappear/fade/other?
How about they stick/squish - and stay. The material build up becomes thicker as more 'bodies' pile up, gradually building up to where fresh falling lemmings don't squish - but instead bounce off the pile on random trajectories, preserving some largish percentage of their falling momentum. Potentially splattering into a wall, roof, another floor, other - maybe surviving if they catch a ledge in the trajectory arc.
So - thousands of nano lemmings falling of of a ledge splat, build up, then start to fountain in all directions from the impact point, live sometimes, die and start building up surface most times, etc...
Bodies piling up is easy to do, so maybe I'll do that. It changes the game quite a bit though, since any cliff can be survived if you can make a big enough pile. I would certainly have to make sure that the pile does not end up being just a 1 pixel wide tower.
For the pile... how about crush depth. Eventually if they pile up high enough they compress into 'dirt' at some ratio - maybe 10:1?
For the stack...
If the falling lemming encounters a dead lemming body:
1. check down 1, left 1. If unoccupied, falling lemming moves one column left and continues to fall. else 2.
2. check down 1, right 1. If unoccupied, falling lemming moves one column right and continues to fall. else 3.
3. stack on top of dead lemming. count stack.
4. if stack is > 20 (or 50 or ?) dead lemmings tall, compress the bottom 5 or 10 (or so?) into dirt/carbon.
5. if stack compressed, all dead lemmings above it fall again.
Which brings up the questions of whether lemmings can dig through a pile of dead lemmings or build from the top of the stack or if a pile of dead lemmings are too slippery to climb - and if you dig through a hole into a pile of dead lemmings do they fall/flow and flood a bit back into the hole and kill the workers that dug it?
Not wanting to complicate things - just brain storming weird and funny things that could happen if dead lemmings didn't just pop and fade.