Download latest here! (always check the newest post)

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

Just a sprite system demo.
F1 (=select) --> change palette
F2 (=reset) --> start afresh
The number that occasionally appears mid-screen is the lemming count. It counts to 75 and then resets.
When the count hits about 25, the dynamic sprite draw starts to kick in - rather than drawing all the lemmings, only the first 25 are drawn. But *which* ones are drawn is randomised, effectively, so they all flicker (hopefully evenly). The dynamic draw is pretty much running 100% by the time there are 30 lemmings. The demo continues up to 75 lemmings, to see how things go.
It's a very unobtrusive multiplexing and seems to work well.

Andrew Davie

#1
Sprite system refinements.
Center point for each frame
Variable height frames


Andrew Davie

#2
This is a video blog of my rudimentary work on a Lemmings for the Atari 2600.

This is a pretty good demo of the software sprite system. I limit it here to 16 sprites, but it can handle more - 50 or so at the expense of flicker.  Here I demonstrate a fair few colours, animations, and the multiplexing where required.

I hit the fire button to cull some (which is why you see the count reduce).

I now generate the graphics via a tool, direct from image files (png, jpg, gif) including the colour conversion.  What you see here is my 'pCC' (phased ChronoColour) system in operation, which gives the impression of more than one playfield colour on a scanline. It's ALL playfield graphics.

Hit SELECT (F1) to change palette
Hit RESET (F2) to restart
Press/Hold FIRE to cull some objects


Andrew Davie

Prelim "virtual world" background. Huge scrollable background world - use the joystick. This is the matrix draw system functional; it's jerky because I limit the speed to every 8th frame. In the final version it will be super-smooth.  Once I get some actual data in, it's gonna look gorgeous. And huge - this one being 240 characters wide.  System can handle "infinite" size worlds. Just need bigger ROMs for that.

Lemmings are going to be mostly over black background, and will be different colours - so they will be quite distinct.

Use the joystick to scroll.
Use the button to remove lemmings (which are limited to 8 in this verison to stop clutter)
Press/release SELECT to change palette

Andrew Davie

Now that the background import tool is working nicely, I have a scrollable world -- well, a small scrollable world. It actually works with completely random bitmaps - and creates as many characters as required to draw the world. But that's expensive.  I really need graphics that are optimised for character graphics. That will come.

For now, though - here's a small "world" with full graphics. The colours are not so bad - well, pretty good actually!  Just scroll around with the joystick - the lemmings disappear when offscreen, and regenerate when there's blank at the top of the screen. They're mostly flicker free here because the system isn't being stressed.  The colours of the world are hardwired for this version - it turned out quite like the source graphics (shown as an image below).



Bomberman94

It doesn't have automatic PAL detection, right?

Andrew Davie

Quote from: Bomberman94 on 17 Oct 2025, 06:17 AMIt doesn't have automatic PAL detection, right?

Thanks for testing/report.

Somehow I broke the autodetect, but it took forever for me to find that. The reason is, there was an existing bug which worked with the (faulty?) autodetect and so everything appeared to work OK until this latest version.

The bug was a double colour-conversion. Normally all colours are NTSC. If the game is in PAL or SECAM mode, then every colour is converted from NTSC to the nearest colour in the mode being viewed. For some reason this all worked fine, until the last version.

But what was actually happening was a DOUBLE conversion.  Convert the NTSC colour to PAL, and then convert the PAL colour to PAL (thinking it was NTSC). Strange. I don't know what happened, exactly, but I did do a lot of cleanup of the redundant startup code.

Anyway, the attached version should be better. I still have some issues with the software sprite draw... but overall it seems pretty clean.


Andrew Davie

Extensive changes to the sprite draw - triple resolution and colour phasing.
See recent thread posts.