Mu0n
Well-known member
I made a few dozen example programs as learned the Mac Toolbox in C (with THINK C) back in 2004-2005. I managed to delve in the wonderful world of the Sound Driver, windows mangement, event management, offscreen blitting, VBL timers, etc. None of it was unified into a real game, but I'm trying to get back to it.
Meanwhile, across my hundreds of hours of searches online back in that time, I dug deep into tons of web-accessible FTP servers which had nuggets of example code files, borrowed olden programming books with CDs filled with source code, perused the old retromac68k hotline server which had MOUNTAINS of software and the occasional code ressources. I have a sample THINK Pascal project folder sitting on my Powerbook 180 which is called SmoothMove. It just moves a sprite across a background very smoothly, doesn't destroy it and seems synced to the retrace timer because as advertised, there's no flicker.
Sadly, it seems it's using libraries that didn't come from whatever source I dug it from. I also don't have THINK Pascal installed and the source file is pretty simple. It calls some external libraries (SATToolbox) but of course, I find no trace of it in my files. All I have to show for it is a least a working executable.
If anyone wants to share a skeleton game engine in C that can compile easily with THINK C, I'd be very grateful. I made some practical library files that sets up the screen by removing the menu bar, creates a grafPort in 512x342 size and can even work in bigger screens by creating it centered instead, with a patterned border around it iirc. I have a bunch of sprite functions that handle all the loading from resource files, or from a custom made .spr8 file type I made which allows for multiple frames of graphics that can loop around. I can't find the software I wrote to make these files, but I should dig around my real dev environment inside Basilisk II on my PC.
Meanwhile, across my hundreds of hours of searches online back in that time, I dug deep into tons of web-accessible FTP servers which had nuggets of example code files, borrowed olden programming books with CDs filled with source code, perused the old retromac68k hotline server which had MOUNTAINS of software and the occasional code ressources. I have a sample THINK Pascal project folder sitting on my Powerbook 180 which is called SmoothMove. It just moves a sprite across a background very smoothly, doesn't destroy it and seems synced to the retrace timer because as advertised, there's no flicker.
Sadly, it seems it's using libraries that didn't come from whatever source I dug it from. I also don't have THINK Pascal installed and the source file is pretty simple. It calls some external libraries (SATToolbox) but of course, I find no trace of it in my files. All I have to show for it is a least a working executable.
If anyone wants to share a skeleton game engine in C that can compile easily with THINK C, I'd be very grateful. I made some practical library files that sets up the screen by removing the menu bar, creates a grafPort in 512x342 size and can even work in bigger screens by creating it centered instead, with a patterned border around it iirc. I have a bunch of sprite functions that handle all the loading from resource files, or from a custom made .spr8 file type I made which allows for multiple frames of graphics that can loop around. I can't find the software I wrote to make these files, but I should dig around my real dev environment inside Basilisk II on my PC.
Last edited by a moderator: