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

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
It's been too long!
I've been fooling around learning the in's and out's (mostly out's)
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

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
