Jump to content

Help needed optimizing and debugging text adventures!

Harry Potter

Recommended Posts

Hi!  I am working on a text adventure for the C64 using cc65 and, if I succeed, plan to port it to other platforms, including the Atari.  Somebody over at the applefritter.com forum told me to check the output code from cc65, and I found a few inefficiencies.  While converting them to assembler, I got the text adventure to work but not my text adventure skeleton codes.  One symptom is that they display garbage when displaying room descriptions.  I use my printtok() function which displays token-compressed strings.  Replacing it with prints() from my *SimpleIO libraries works.  i added code to print both the address of the string passed to the function and the one received by the function, and the numbers don't match.  They are AdvSkelVic65 and AdvSkel65 and are at c65 additions - Manage /game at SourceForge.net.  BTW, the former has an Atari cartridge version, and the latter has an AtariXL version, but I don't remember if it also has a regular Atari 400/800 version.


I am also looking to optimize my own text adventure.  I attached some example code in the hopes that somebody here can give me some ideas to optimize it.

Example TextAdv Code #001.txt

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.

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.

  • Recently Browsing   0 members

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