Plus 4 game question

Started by xlar54, December 31, 2007, 05:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xlar54

If the plus 4 didnt have sprites, how did they manage to compensate for that?  Looking around I see that the plus4's game scene is actually well established.  Just curious how this was accomplished without sprites.

Mark Smith

Lots of CPU based routines.

Draw screen with "sprite" in position A
rub out where "sprite" is
Draw screen again with "sprite" moved to the next location B

:-)
------------------------------------------------------------------------------------------------------------------

Commodore 128, 512K 1750 REU, 1581, 1571, 1541-II, MMC64 + MP3@64, Retro-Replay + RR-Net and a 1541 Ultimate with 16MB REU, IDE64 v4.1 + 4GB CF :-)

WonderSlug

In essence, the programmers created software-based sprite routines in machine language that pretty much did the same things.

Some of the better ones copied the routines from the C64 kernal as much as possible, modifying as necessary to run on the Plus4.

smf

Quote from: WonderSlugIn essence, the programmers created software-based sprite routines in machine language that pretty much did the same things.

Some of the better ones copied the routines from the C64 kernal as much as possible, modifying as necessary to run on the Plus4.
There were absolutely no routines in the c64 kernal that were useful for games.

You can either run in bitmap mode, which is going to be slow and probably not going to work too well on the c16.

Or you redefine your character set at run time. Basically you look at what character is on the screen & copy that into a character that is reserved for your sprite. Then overlay the sprite graphics, rotating it as appropriate. Generally you'll have a set of characters, like 4 x 4 for each sprite. Remembering that you lose one character row & column because you need to space to shift it into.

The alternative, which some games used was just to use character graphics and only move them 8 pixels at a time, which is pretty horrendous. Although if you design your game cleverly it can work quite well. A game like space invaders or galaxian you can scroll the screen to move the majority of the graphics & you only need to do something special for bullets and other graphics that aren't supposed to be scrolled ( i.e. you move them in the opposite direction to the scroll and they stay still ).