Pelles C forum

C language => Graphics programming => Topic started by: MrBcx on February 19, 2025, 02:36:53 AM

Title: Dizz-Asteroids by MrBcx
Post by: MrBcx on February 19, 2025, 02:36:53 AM
I wrote this in BCX BASIC, translated it to "C", and created a Pelles IDE project
for all you non-BASIC folks because sometimes it just feels good to destroy asteroids.
It is not a clone of the original Asteroids but it is still a very playable and fun game.

'===============================================================
' Dizz-Asteroids by MrBcx  -- MIT Licence --  October 29, 2024
'        Built with the help of Anthropic's CLAUDE Pro AI
'===============================================================
' Small asteroids    =   100 points
' Medium asteroids   =    50 points
' Large asteroids    =    20 points
' UFO Mine Layer     = 1,000 points
' Lives restored every fifth level
' Levels get progressively harder
' Press P to PAUSE game play
' Press H for HYPERSPACE gamble
' Press UP and DOWN arrows for forward and reverse propulsion
' Press LEFT and RIGHT for steering the ship
' Press SPACEBAR to fire lasers
' Current game is saved on exit
'===============================================================
Title: Re: Dizz-Asteroids by MrBcx
Post by: John Z on February 19, 2025, 08:19:27 AM
Thanks! sounds like nostalgic fun..I'm downloading.

John Z

Haha - only through level 3 - enjoyed it, bring back memories.
Title: Re: Dizz-Asteroids by MrBcx
Post by: Vortex on February 19, 2025, 10:55:04 AM
Hi MrBcx,

Thanks, I managed to compile the code on Windows 11 2024 H2.
Title: Re: Dizz-Asteroids by MrBcx
Post by: MrBcx on February 19, 2025, 02:09:40 PM
Quote from: John Z on February 19, 2025, 08:19:27 AM
Thanks! sounds like nostalgic fun..I'm downloading.

John Z

Haha - only through level 3 - enjoyed it, bring back memories.

I've only made it to Level 41, so far. 

My twitchy fingers and slow reflexes do not lend themselves to stellar game play.  ;D