Jump to content
  • Advertisement
  • entries
  • comments
  • views

A c64 game in several steps (lots of 'em)




Today's development is heaps and bounds beyond imagination from 20 years ago. I've always had a soft spot for the C64 after all this years. So I sat down and tried to start assembly programming on a C64.

Today I'll start with a sort of tutorial on how to write a C64 game. I have prepared 36 steps for now, planned are probably a few more.

I'll start out very small but there will be bigger steps later on. The code is supposed to be heavily commented but is probably not clear for everyone. I'll be happy to answer questions regarding the code. The code is written for the ACME cross compiler, which allows to compile the code on any bigger OS.

Step #1 is a simple base for a game. It provides a Basic start (10 SYS 2064), sets up the VIC relocation and shows a simple synchronized game loop.

To show the loop running the border color is flashed and the top left char is rotating throughout all characters.

The not too eye-popping result looks like this:

Find here the source code and binary for use in an emulator of your choice (I recommend WinVICE):

Next Step 1b


Recommended Comments

I am looking forward to reading the next parts.

What cross assembler did you use?

Share this comment

Link to comment
Ah, I knew I forgot something.

I'm using ACME. I'll see to explain a bit more with the next steps. Maybe somewhere someday someone might want to try something new old ;)

Share this comment

Link to comment
Great to see people are still coding for the C64.

Kudos to you.

I spent many years coding demo's and games on the C64.

And i'm still coding games today.

Great read and brings back lots of memories.


Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!