Sprite Masking, Rudimentary Music

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

Prior versions have drawn the software sprites (=Lemmings) on a black background. This version introduces masking into the draw, so that the sprites can move over any background. It's a bit computationally expensive; I'm going to need to work hard to keep everything running at a decent speed. If it's possible.

Anyway, there's still a mid-screen bug (vertically left/right of that center line). It's to do with the mirrored playfields and handling thereof.

I have also added a preliminary soundtrack, for what it's worth. That's what ChatGPT gave me when I asked it for the Lemmings theme. I guess it needs a bit of work. More research!


In the video - obviously it's more Sokoban than Lemmings at this stage - I have a bunch of lemmings over the top of the Sokoboo playfield.  Sooner rather than later I need to change the background to a lemmings screen, and then things will look much more Lemming-like.

In any case, the Lemmings are "solid" as they move over things in the background. This is "quite the achievement" because of the interlacing on/off lines in the pCC display system. You can't just plonk data onto the screen buffer anymore; one needs to mask out what's there first, even if we're drawing blank data (sub-pixels) on a given line.