Background Collisions

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie


I had a go at tying the lemmings to the background.  This is extremely clunky and visually awful - I'll fix all that up later. Basically it's doing 5-pixel scrolling instead of "sub-pixel" so it's really rough.  So let's forgive all that and just focus on what's happening here.

I've got a rudimentary "background character lookup" for the lemmings, so they see if there's something below their feet. If not, then they fall.  It fails in a number of places -- they can "sneak through" the gaps where there's a diagonal. But in principle, they're "seeing" the correct bacgkround characters and doing basic logic -- that is, turning around, or falling.

When a lemming goes offscreen, in this version, I just kill it and generate a new around mid-top of the visible screen - so you see new lemmings pop in, and either get stuck or start to fall.

This quick and dirty gives some idea of what lemmings might look around walking around a background -- that is, not always overlapping the background, and mostly drawn on black.  It will get much much nicer as I refine things over the next few weeks.

In the attached binary I've added a bit of gravity, and you'll definitely see some screen flicker/time overflow (now fixed).  Such a quick and dirty I just wanted to see what things looked like.


Bomberman94

I would say ,,better than expected" but many Lemmings don't make sense in a game as we know it. But what about a single Lemming that must solve mysteries, interacts with things and enemies that cross its way? I think that would work...

Andrew Davie

Quote from: Bomberman94 on 10 Oct 2025, 03:00 AMI would say ,,better than expected" but many Lemmings don't make sense in a game as we know it. But what about a single Lemming that must solve mysteries, interacts with things and enemies that cross its way? I think that would work...

Not ready to change course just yet. I think with correct graphics - particuarly having the lemmings animate to show what they're doing - and proper fine scrolling, this is going to look just fine.