shanti77's Sprite Splitter Demo Puts Eight Three-Colour Sprites on Screen

On 9 May 2021 shanti77, known for The Last Squadron and Bosconian, posted a compact "sprite splitter" example on AtariAge. It shows how far the Atari's four players can be stretched when they are reused down the screen.

What the demo does

  • Eight sprites on screen at once.
  • Each sprite has three colours.
  • Sprites are 16 lines tall.
  • The background has no vertical scrolling, which keeps the example simple.

The splits are driven by display list interrupts. Sprite positions are worked out in terms of character rows, and interrupts on those rows reuse the players further down the screen. shanti77 explained what was left out on purpose. Vertical scrolling would require adding the scroll offset to the sprite positions and fixing the first and last interrupts, because DLIs can overlap depending on screen shape. shanti77 had to catch exactly that case in The Last Squadron, sometimes by skipping one interrupt. Multi-height sprites and missiles as shots are also left as exercises, though the code is easy to adapt: missiles can serve as bullets or add a colour to the main character.

The archive also includes a small Dev-C++ converter for sprite data. Draw frames in AtariPlayerEditor, export them with its LIST option, paste the P0DATA/P1DATA arrays into main.cpp, set the frame count, height and name, and run it. It writes a ready-to-include data.asm.

DLI or timer IRQ?

The thread turned into a useful debate. Other coders noted that a POKEY timer IRQ can split on any scanline, not just at mode-line boundaries, and tebe posted a PAL example of precise IRQ splits. shanti77 still preferred DLIs for multiplexing. The IRQ approach costs a sound channel and runs at different speeds depending on which character line it fires on, and shanti77 had already tried IRQs in Bosconian and in the first version of the Last Squadron engine.

Why it matters

The engine was already running a Bomb Jack work in progress shown on video, targeting just 64K. That caught attention because the well-regarded 2008 Atari Bomb Jack needs 320K on disk, since it draws its sprites in character mode. A hardware-sprite multiplexer avoids that memory cost. It also turned out that Tezz had been quietly working on a Bomb Jack arcade conversion of their own, with a timer-IRQ command list, so two ports were suddenly in progress.

Getting it

Demo.zip is attached to the first post of the AtariAge thread "Atari Sprites Spliter Demo" (the misspelling is in the thread title). It runs in an emulator such as Altirra or on real hardware.

Credits