Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Goodwell

#1
128 programmers / VDC Soft-Sprite Demo
June 09, 2025, 07:20 AM
Here's a small, interactive demo that allows you to move a softsprite across a screen in 160x100 resolution (64 kB VRAM required).

You cannot view this attachment.

Use keys IJKL to move the ghost, X exits the program.
You can also list the sourcecode, which shows that the main loop is a regular basic program.

This uses the VDC-Basic extension which focuses on leveraging on the hardware capabilities of the VDC-Chip (block copy and block fill).
In 160x100, one byte holds two pixels.
Fully transparent bytes are skipped from block copy.
Bytes with one transparent pixel require a slow OR operation.

Still, drawing the softsprite only takes about 2 jiffies at 2 MHz.
This is using double buffering, so there's no flicker.

Looking at this, I think the C128 could have been capable of running DOS ports that never made it to the C64. Or ports that really were beyond the C64's strengths (eg Ultima VI)

You can find more information about VDC-Basic here: https://github.com/the8bittheory/vdc-basic