Jump to content
IGNORED

My first game in assembler


olix

Recommended Posts

On 8/26/2022 at 2:24 PM, MrFish said:

 

 

I'm getting old enough now, that I'm starting to become nostalgic about nostalgia.

 

 

At 61, I'm so old I've forgotten what nostalgia is.......PS Olix, games looking better every time.. Don't forget to save decent routines for re-use later, a good library of precoded routines is a life saver..

  • Like 3
Link to comment
Share on other sites

The game on difficulty level 1 is now fully playable. With visible walls, ghost, bat and spider and no locked doors. I don't have all the sound effects yet, but I'm on the right way. Maybe next weekend I can upload the first playable beta version. Until then, here is a video showing the development status.

  • Like 13
Link to comment
Share on other sites

  • 3 months later...
  • 2 months later...

... after 6 months programming break I'm back again:

 

I had no peace to let a half-finished program rot in the disk box.
So I decided to finish the port. First I had a look at the last state and fixed some stupid bugs.


But now I have a bug free version that has 4 game levels:

 

  1. Visible walls with 3 monsters
  2. Visible walls with 5 monsters
  3. Dark rooms with 3 monsters
  4. Dark rooms with 5 monsters

 

This version is fully playable and I have at least one finished playable program. My very first real game written in assembler. :D (Apart from a Pong ... )

 

But what's missing now is the really difficult game level, where the rooms are partly closed with locked doors and can only be opened with a key, which has to be found first.

That sounds easy, but I still have a lot of open detail questions for which I have to look for solutions.

 

And then came the shock: Despite my really very detailed documentation, I partly don't understand my own program code anymore. And that after only 6 months.

Now I have to muddle through my source code subroutine by subroutine to fully understand the exact process again.

But I'm working on it, and I'll get it done.

 

Until then a small impression, how the dark mode looks like:

  • Like 7
Link to comment
Share on other sites

42 minutes ago, olix said:

I partly don't understand my own program code anymore.

I know the feeling, got the tee-shirt on that one, what I do these days apart from copious comments

in the code itself, I make sure I put extra comments around code you might consider a "neat trick" :)

I find it's those moments of genius that you usually come unstuck on.

 

Something like this:-

 

putmess .proc        ; print string directly to screen routine
loop MVA adr c1+1    ; change count address at c1 to point at text string
       MVA adr+1 c1+2
       stx xtmp    ; save length
       ldy #0
       ldx #0
c1   MVA count,x (myscreen),y ; <<<< count address will change @ runtime

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...