68kMLA Classic Interface

This is a version of the 68kMLA forums for viewing on your favorite old mac. Visitors on modern platforms may prefer the main site.

Click here to select a new forum.
QuickDrive 68K - An WIP experiment in 2.5D racing
Posted by: DW1992 on 2026-06-10 17:52:08
Hi Everyone,

It's been too long!
I've been fooling around learning the in's and out's (mostly out's) ðŸĪŠ of coding a 2.5D (pseudo 3D) racing game engine for System 7 in C using CodeWarrior PRO 4.
I've learned a LOT from reading through jonathanopalise's PPENGINE, a 3D Linux clone of PolePosition (1632? That a year or something? NO it's your top score on Pole Position...). ðŸĪĢ

QuickDrive 68K is FAR from finished. In fact, it's only just now starting to behave (almost) correctly. But I wanted to share what I've cobbled together so far and see if anyone has suggestions for how to improve, or what direction to take this in.

A fun little hack, you can swap between the two background images in the resource file by changing the background PICT ID to either 138 or 139. 😎
Add your own PICT to the resource and use that as well! Specs are:
640x200px @ 256 colours
1.png 2.png
You can add your own vehicle as well, just adjust the PICT resource IDs for the sprite and the mask.
The specs are:
Sprite - 170x160 @ 256 colours
Mask - 170x160 @ 1bit B&W

Have fun adjusting how the physics effect the drag, particles, steering, acceleration, etc..

One thing to note... this is NOT optimized in any meaningful way.
It's developed in Basilisk II on my M1 MacBook Air and runs great.
Compiled, on a real LC475 it runs, but is sluggish at this point of development.

It does NOT use any float calculations, so no FPU (or dreaded slow soft FPU) calls, however, it does still do costly division far too often.
It's a WIP, so improvements to come (with your help I hope!)

I've attached a .SIT containing the full CodeWarrior project, including the source and resource file (PICT data).

Let me know if you do anything with this! 😙
Updated soon (I hope)! ðŸĪž

Tare care
DW/Dark Systems BBS
Posted by: Durosity on 2026-06-11 04:15:41
How exciting! I look forward to trying this out!
Posted by: DW1992 on 2026-06-11 16:31:12
How exciting! I look forward to trying this out!
Thanks. 🙂
Try it in an emulator like Basilisk II on a modern machine for full speed.
Ultimate goal is to make it run smoothly on a real 68LC040.

DW
Posted by: Byte Knight on 2026-06-13 06:37:35
Very cool! Looks like the old OutRun arcade game.
1