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.
Operation : PewPew! A new game for 68040 and soon... 68030
Posted by: DW1992 on 2026-01-31 06:44:09
Don't know how I missed this, but luckily someone uploaded it to my BBS! 😎

I was not expecting stereo music to come blasting from my MBP speakers when I fired it up in Basilisk II. Fantastic job so far!!
I wonder who that was? Curse that handsome devil! πŸ˜‚ πŸ™ƒ

I actually left the sampling playback at 22050Hz but I think in a future version, to try and help with CPU cycles, I'll add a menu option to drop it to 11025Hz.
Plus.. it's Jester! Stardust Memories is such a classic. πŸ₯³

Thanks for the kind words! πŸ™‚
Posted by: DW1992 on 2026-01-31 06:45:29
I'd forgotten that perhaps the version matters… πŸ˜› I'll get 7.1 running on my SE/30 and vMac and use 5.5 to see if that helps, can't wait to try it out!

Would you be able to share on Github? I want to write a markdown editor for my own use and will share eventually.
Let me know how 7.1 behaves for you.
Now that the game is 'done' to a state that it's playable and I'm happy with, I'm starting to play with optimizing for 030 (?020?) πŸ™‚

Source in next post down πŸ™‚
Posted by: DW1992 on 2026-01-31 06:51:33
Hi Everyone,

Thanks for the kind word and support on my game!
I'm glad so many people are enjoying it!
It was a lot of fun to make, learned a lot, forgot even more... πŸ˜‚

I put together a little package that contains a fully commented version of the C source, as well as the full CodeWarrior PRO 4 project folder, including all libraries and resource file, and some other goodies.

Apologies now for my sense of humour in the comments... πŸ˜‡

The package is zipped (by OSX) and inside you will find the .SIT files, instructions, etc.. to extract in your 68K environment.

Operation PewPew! SOURCE CODE

Any questions, comments, requests, etc.. please contact me!
Aaron/DW
Dark Systems BBS
Posted by: Byte Knight on 2026-01-31 06:55:18
I wonder who that was? Curse that handsome devil! πŸ˜‚ πŸ™ƒ

I actually left the sampling playback at 22050Hz but I think in a future version, to try and help with CPU cycles, I'll add a menu option to drop it to 11025Hz.
Plus.. it's Jester! Stardust Memories is such a classic. πŸ₯³

Thanks for the kind words! πŸ™‚
Updated my news page - now you've hit the big-time! πŸ˜…

Screenshot 2026-01-31 at 8.50.38 AM.png
Posted by: iantm on 2026-01-31 07:11:48
Thank you for sharing the source code. The comments are fabulous and are really going to help me learn. In a past life I made a side shooter in Java but that was so long ago and I'm not familiar with the MacToolbox. This is going to be a blast… or rather a PewPew
Posted by: DW1992 on 2026-02-01 08:07:28
Updated my news page - now you've hit the big-time! πŸ˜…

View attachment 95098
haha awesome! Thanks Captain! πŸ˜ŠπŸ‘Ύ
Posted by: DW1992 on 2026-02-01 08:13:22
Thank you for sharing the source code. The comments are fabulous and are really going to help me learn. In a past life I made a side shooter in Java but that was so long ago and I'm not familiar with the MacToolbox. This is going to be a blast… or rather a PewPew
haha, sweet! and you're welcome!
Here's a LINK to a site with dozens of old school Macintosh programming textbooks in PDF format.

But, please ask anything! No guarantee it's the proper way to do something, but it worked! πŸ˜‚
I thin it's awesome more people are interested in writing for this platform. So much useful life left in them! πŸ₯³
Posted by: DW1992 on 2026-02-05 17:50:25
Hi Everyone!

Development testing update version - 68030 πŸ‘ˆ
Pre-release 1.5.0


I made some (I think) pretty major revisions, refinements, probably errors πŸ™ƒ, and changes to quite a bit of the code to try and get PewPew running fast on 68030 machines.. I think I was, at least partially, successful!

Anyone with real hardware who wants to help me test, please download this version (attached) and let me know how it plays on your machine.
Please include your system specs.

Here's a short list of some of the changes I've made
- The game window is now centred on any sized screen, instead of being tucked away in a corner (no one puts PewPew in the corner!) 🀣
- The game will detect your CPU type and adjust some settings automatically for better game play. Example: 68030, music is off, stars turned down, no screen shake or screen flash events. 68040, music blasting, 60 parallax stars, etc... I plan on expending this, but allowing the player to override the defaults.
- The ship's laser is a little fancier looking.
- The laser's bounding box is properly sized to strike enemies and not pass through the edges.
- The 16x16 sprites now use a much faster collision detection routine
- When the laser is fired, the system checks if an enemy is even 'near' the laser's path and only does collision detection checks if it's a plausible hit.
- The star field is now directly written to memory.
- The player's ship is now limited to the inside of the playing area border. No more vanishing off the ends of the screen.
- 16x16 sprites now use a directstamp16 routine, (mostly) bypassing QuickDraw. 🀞
- Found some embarrassingly inefficient code left over from early on that was duplicating (and taking up cpu cycles) tasks like collision detection, etc...

EDIT
Yes, if you look in the code in that screen shot, the variable 'partypooper' can be either 0 or 1. 0 = 68040 1 = 68030 πŸ’©πŸ˜†

centered.png
Posted by: slomacuser on 2026-02-06 02:06:56
Hello @DW1992 , congrats on your app development πŸ™‚ can you please check your DM? Thanks
Posted by: DW1992 on 2026-02-07 11:32:52
Attached is the updated 68030 optimized version of pewpew.c
Just rename the file to pewpew.c and place it with the other resources in your CodeWarrior PewPew project.
Posted by: DW1992 on 2026-02-08 15:08:41
One more update...

CRITICAL UPDATE

666 was found in one of the compiled versions, so I'm replacing everything with this verified CLEAN version.
Good lesson to double check the free downloads of dev tools from the standard mac websites.

The game itself and the source code .SIT archives attached.

Aaron/DW
Dark Systems BBS
Posted by: Phipli on 2026-02-08 15:22:59
Good lesson to double check the free downloads of dev tools from the standard mac websites.
What development tools, what version and from where?

You're saying that is where you got it from, but it might be good for us to firstly confirm that that is where your infection came from, and then we can clean it up for other people?
Posted by: nathall on 2026-02-13 20:37:40
Hey, finally got around to trying this.

Unfortunately, doesn’t run past the title screen on my Color Classic II. I’ve tried all bit depths (including 1 bit) and results are identical:

View attachment IMG_6069.MOV

EDIT: System 7.6.1
Posted by: VMSZealot on 2026-02-14 02:23:15
What development tools, what version and from where?

You're saying that is where you got it from, but it might be good for us to firstly confirm that that is where your infection came from, and then we can clean it up for other people?
It's a good idea to scan everything on your computer with the most up to date virus checker it can handle. I use Virex on my '030 and '040 Macs, and Disinfectant on my 68000 Macs. On my OS X Macs I use ClamXAV. Be paranoid. They are out to get you.
Posted by: Phipli on 2026-02-14 02:37:17
It's a good idea to scan everything on your computer with the most up to date virus checker it can handle. I use Virex on my '030 and '040 Macs, and Disinfectant on my 68000 Macs. On my OS X Macs I use ClamXAV. Be paranoid. They are out to get you.
Yes, but if they actually told us what the download was, we could fix the source, rather than every single computer it is downloaded to, forever.

Doesn't mean it isn't good to check downloads, but it helps everyone if we fix the source. I'm puzzled why they haven't answered the question.
Posted by: VMSZealot on 2026-02-14 03:33:35
Well, if they're anything like me, maybe they are the source - I have my own floppy discs for Think C (and the manuals) - and I used my own media to install it. If my media were infected then only I could fix it.

That said, I have scanned my computer - and it's all clean. And I scanned my game, Innecto, and that's clean too. But don't take my word for it - if you want to play my game then you need to scan it yourself too! (Mind you, I was trying to get it to run on a 128k Mac - so the additional bloat of a viral payload would be unacceptable for reasons of optimisation if nothing else!)
Posted by: Phipli on 2026-02-14 03:57:27
Well, if they're anything like me, maybe they are the source - I have my own floppy discs for Think C (and the manuals) - and I used my own media to install it. If my media were infected then only I could fix it.
Nah, they explicitly blamed a "standard Mac website".

That said, I have scanned my computer - and it's all clean. And I scanned my game, Innecto, and that's clean too. But don't take my word for it - if you want to play my game then you need to scan it yourself too! (Mind you, I was trying to get it to run on a 128k Mac - so the additional bloat of a viral payload would be unacceptable for reasons of optimisation if nothing else!)
I made this for my real hardware moving forward:


It should boot most beige Macs (I haven't tested older than a 475 yet, but it should boot back to a IIci, if not back to a 4MB Plus). It will also work mounted with things back before that if they can read the hfs CD properly. As well as newer machines up to MacOS 9.2.2 if they boot from their own disk
Posted by: VMSZealot on 2026-02-14 05:53:55
Nah, they explicitly blamed a "standard Mac website".


I made this for my real hardware moving forward:


It should boot most beige Macs (I haven't tested older than a 475 yet, but it should boot back to a IIci, if not back to a 4MB Plus). It will also work mounted with things back before that if they can read the hfs CD properly. As well as newer machines up to MacOS 9.2.2 if they boot from their own disk
Back in the dark ages of the 1990s, before I became a full time software developer, I used to work for an Apple Centre* as their PowerBook repair geezer. I went to Apple's training centre in Uxbridge to learn how to service a PowerBook (although quite a lot of the time seemed to have been spent talking up QuickTime). I got a certificate and everything. More usefully, I got a set of Service Source CDs and a boot disk that sounds very similar to yours. All the tools you need to fettle an ailing Mac.

*not actually owed by Apple - these were independent businesses that had received accreditation from Apple that they were able to service and sell Apple kit reliably. It was during the time that I worked there that Apple deprecated the Apple II and we got to chuck a whole bookshelf full of manuals (including those for the /// and the Lisa). I kind of wish we hadn't now!
Posted by: DW1992 on 2026-02-14 07:09:13
Hey, finally got around to trying this.

Unfortunately, doesn’t run past the title screen on my Color Classic II. I’ve tried all bit depths (including 1 bit) and results are identical:

View attachment 95607

EDIT: System 7.6.1
Hi nathall, I'm sorry it's doing that, but thanks for testing! πŸ™ƒ

I see the app's icon isn't showing either, so I'll have to create a system 7.6.1 environment and try to replicate it.
The highest I've tested with is 7.5.5, not that the System version might be the issue.
There's a good chance my shoddy gestalt detection code might be causing the freeze.
I'll try a few things and post back ASAP!
Thanks again!

Aaron/DW
Dark Systems BBS
Posted by: DW1992 on 2026-02-14 07:20:28
Yes, but if they actually told us what the download was, we could fix the source, rather than every single computer it is downloaded to, forever.

Doesn't mean it isn't good to check downloads, but it helps everyone if we fix the source. I'm puzzled why they haven't answered the question.
Howdy Phipli,

Main reason / excuse.. time.
Working as a full time Firefighter and then taking the kids to their various sports and activities (no regrets, love it!) leaves very little down time to play with 40 year old software. πŸ™ƒ

As for "explicitly blamed a standard Mac website", since the only location I've ever acquired software for any of my machines, including my emulated environment are the two most common software archives.
I don't have a SCSI CD drive and none of the 3.5" floppy drives work on my ol' real hardware machines (damn plastic gears... that's going to be a summer project...) βš™οΈπŸ˜Ž
I chose to do the classy thing and not specifically name blame since, as you mentioned, the specific archive or package it came from is unknown (for now).
This weekend, while living in a hockey rink each day for my daughter's games, I plan (hope) to grab the packages fresh from the archived sites and scan them one at a time to find the culprit.
Fingers crossed! 🀞

I don't really want to start some big thing, just here to have some fun and share my experience(re)learning some coding tricks on the ol' MACs.
But please, feel free to send me a PM anytime, I'm always open and appreciate to suggestions, tips, tricks and ideas! 😊

Aaron/DW
Dark Systems BBS
< 2 >