Stercore XD (C64) released

The start of a new month sees a new C64 game from yours truly… well, “new” in the sense it’s a reworking of something I released last year under the C64CD label. Stercore XD is a horizontally scrolling shoot ’em up and I’m sure my regular fan has just passed out in shock at such an out of character move on my part. Sarcasm aside, I might as well wibble on a bit about technical details since the game isn’t exactly a complex beast with an engaging back story.

The screen scrolls at five pixels a frame – a little slower than the original Stercore on the Spectrum or the direct C64 port which are moving at eight pixels – and uses a wider map which leaves gaps for tidy background colour changes. That map is 2,340 tiles wide, making the background around 240 screens in total and it all barrels past in a little shy of five minutes during play. Since Stercore XD has been squarely aimed at the RGCD competition it needed to run from a 16K cartridge, so the bulk of the game is compressed with Exomizer but the unrolled chunk of background scroll code required to move two and a half times what the Spectrum is dealing with was generated on start up.

Stercore had player and enemy objects passing between two layers and this has been faithfully replicated with hardware sprites in Stercore XD, relying on the hardware sprite priority register and using a similar approach to games like Implosion, Dan Dare or Shadow Skimmer. One background layer is always the background colour the character mulitcolour which that doesn’t get priority over the sprites, the other layer uses the remaining multicolour and character colour, with the latter mostly being used to add dark and light detail. This technique is accurate to half pixels and requires no processor overheads for masking but does require a lot of extra juggling when drawing the graphics.

After that it’s got a slightly extended and tweaked version of the original theme tune which was just an extra half pattern from the original Autotracker-generated tune used to “create” the original Stercore music and, more importantly to the gameplay, there’s a simple attack wave driver which was repurposed from Super Hyperzap. As is usually the case there’s source code – and in this case, work files for those wanting to understand the sprite priority thing – over at GitHub for folks wanting to prod around, although that source isn’t my tidiest piece of work even after it was “sanitised”!

2 thoughts on “Stercore XD (C64) released

  1. A nice little game considering the footprint – nice looking graphics, music and effects is no mean feat considering the RAM I know I’m taking to do very simple things at the moment!

    As always, thanks for the code share! I’m always looking to ‘learn’ new things and the only effective way I’m finding to do that is to delve into other people’s cupboards and mooch around. :D

  2. It’s really not the neatest C64CD code, I originally had a “narrative” in my head where things got more complex with each release – starting from what a beginner would do and building up over time – but that scroll routine and the way it’s generated on starting up both feel like too much of a leap forwards from Super Hyperzap.

    There’s a part of me that wants to do the game that should’ve come between those, but I *think* it’s trying to trick me into writing yet another simple shoot ’em up!

Leave a Reply

Your email address will not be published. Required fields are marked *