QB64 Phoenix Edition
Akalabeth or Ultima 0 RPG, commented and labeled = hackable! - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Works in Progress (https://qb64phoenix.com/forum/forumdisplay.php?fid=9)
+---- Thread: Akalabeth or Ultima 0 RPG, commented and labeled = hackable! (/showthread.php?tid=2570)



Akalabeth or Ultima 0 RPG, commented and labeled = hackable! - madscijr - 04-03-2024

If anyone wants to play with the code for the early adventure game Akalabeth by Richard Garriott & learn how to make a dungeons and dragons style role playing game (or customize it), I cleaned up the spaghetti code somewhat 
  • broke up all multi-statement lines
  • all IF statements have a matching END IF
  • got rid of line numbers, any GOTO / GOSUB destinations instead use a friendly label
and added inline comments that describe what most of the lines are doing (from jtauber's in-depth analysis). 

The map graphics could do with some updating to classic tile graphics (or even roguelike ascii or codepage 437) and the interface could be made friendlier, but as is, it presents a workable framework for learning how to make a basic RPG & dungeon crawler. (I'd eventually like to extract the Ultima 1 BASIC source code from a disk image and get it working in QB64PE & similarly cleaned up + commented, anyone want to help? :-)

Anyway this is the game that came before Ultima 1. See what you can do with it...

(I guess it's too long to post in a code window, so attaching...)

UPDATE: I located where I got the original source code 
https://www.instructables.com/Simple-adventure-game/

The code comments came from
Akalabeth Main Game File | Game File Hacking by jtauber

The original Apple II code can be found at
https://archive.org/details/a2_Akalabeth_1980_California_Pacific_Computer_a
also https://gist.github.com/jtauber/9863811

A more recent port of Akalabeth to GWBASIC can be found at:
https://nanochess.org/akalabeth.html
which includes some background on the game, and details of converting AppleSoft BASIC to GW-BASIC (which for the most part runs in QB64PE).