Reverse Direction game for the Commander X16

Made something in Assembly? Show it off, and tell us how it works...
Absolute beginners welcome... we want to see what you've done!
Forum rules
There is a special rule on this forum...
This forum is intended to offer equal amounts encouragement and constructive feedback...
Therefore, if you say 2 negative things about someones work, you must think of 2 or more equally positive things...

Eg: "Great first effort, the idea is absolutely fascinating... However I noticed a few bugs, and maybe the graphics could be improved..."

If you can't think of anything good to say, then don't say anything!

If we don't encourage newbie programmers they won't have the confidence and motivation to stick at it and become great programmers! *speaking from experience*
Post Reply
Posts: 15
Joined: Tue Jan 07, 2020 11:45 am

Reverse Direction game for the Commander X16

Post by Voyager_sput » Sat Jun 06, 2020 6:20 pm

Hello everyone,

I just finished a new project, which was to make a real time shooter game. It's called Reverse Direction and it's a clone of a well known game from 1978 :)

Really was fun to try and wrap my head around a proper game loop, handle animation frames, slow the game down to run at exactly 24 FPS, regardless of how much work was done in each gameloop.

I'll be adding sound to the game at some point. I'm still trying to understand how to access the sound functionality in the Commander X16, but i'll get there.

If anyone is interested, the source files, assets and a build binary are in the attachments below. Just run it on the Commander X16's emulator version r37 and have fun. Press Return to start a level, arrow keys to move sideways and Ctrl to fire a missile. Try not to get killed! :ComeAtMeBro:
ReverseDirection1.PNG (6.72 KiB) Viewed 594 times
ReverseDirection2.PNG (6.36 KiB) Viewed 594 times
(55.75 KiB) Downloaded 26 times

User avatar
Posts: 421
Joined: Mon Apr 22, 2019 3:19 am

Re: Reverse Direction game for the Commander X16

Post by akuyou » Sat Jun 06, 2020 11:47 pm

Really great work!... I got to level 7

the gameplay is really well done... it feels as good as an authentic space invaders game in the movement and collision detection.

I like the enemies too... they're cute and look funny!... Do they have names like in pacman?
Chibi Akuma(s) Comedy-Horror 8-bit Bullet Hell shooter! // 「チビ悪魔」可笑しいゴシックSTG ! // Work in Progress: ChibiAliens

Interested in CPU's :Z80,6502,68000,6809,ARM,8086,RISC-V
Learning: 65816,ARM,8086,6809

Posts: 15
Joined: Tue Jan 07, 2020 11:45 am

Re: Reverse Direction game for the Commander X16

Post by Voyager_sput » Sun Jun 07, 2020 6:34 pm

Hi Keith, thanks! :)

And well, no official names as such. I call them: 'red apple dude', 'blue blob' and 'green squid'. But you won't find those names in the source code :)

There's also not much difference between them, gameplay wise. Only the red apple dude's fire lasers down at you, but apart from the looks, they have identical collision ranges.

And i'm happy you enjoyed playing :D Each level has a few more enemies then the last, but there's only 10 levels and then it wraps back to level 1. Though if you wanted, you can easily add a ton more levels with very minimal code changes and a few more lookup tables :)

I have to admit to taking inspiration from Y-Quest for the game logic. I'm sure someone with a bit more experience can rebuild the game with less then 3000 lines of code, but i'm still proud I was able to pull it off :ComeAtMeBro:

Post Reply

Return to “Show and Tell”