C64 Basic Dungeon Crawler: Stairs, Levels and Levelling Up (Part 11) retrogameco...
HN Best 200 @best
C64 Basic Dungeon Crawler: Stairs, Levels and Levelling Up (Part 11) retrogamecoders.com · 10 points · 4 comments · HN thread
TL;DR The author of a retro-coding series adds five levels to a Commodore 64 BASIC dungeon crawler: each level needs every chalice collected before the stairs open, the character persists between levels, and levelling up grants hit points and a stat increase. Magic from potions is now tracked, though nothing spends it yet.
- Five levels; chalice count per level follows CL=INT((LV+1)/2), giving 1,1,2,2,3 chalices.
- Character data (HP, stats, gold, keys, magic) persists between levels, while BUILDLEVEL regenerates only the map.
- Stairs sit in one of four random corner rooms, forced to an open room type, and stay blocked until all chalices are taken.
- Each new level grants HP equal to half constitution, plus +1 strength on even levels or +1 dexterity on odd levels.
- Potions now add 50 magic up to a cap of 100, reserved for a ranged attack in part twelve.
- Open to-do items include difficulty ramp (goblin counts are still fixed at 3 to 6) and questions on backtracking and stat choice.
Discussion The thread is small and focuses on whether the BASIC listing is real C64 code. The first commenter says it will not run on a stock C64 because it uses GOSUB without line numbers, labels and long variable names, and that it only works in the author's IDE, which converts it to tokenized code. Another commenter defends the approach as similar to period compilers that optimised BASIC for BBS software, and a third points to the RGC BASIC interpreter. The mood is curious and mildly technical rather than hostile.
- Listing only runs in the custom IDE, not on a real C64 (most): The commenter who raised it says BASIC 2.0 has no labels and that variables like STATS clash with the ST status word. They conclude the code is only valid after the IDE adds line numbers and tokenizes it.
- Preprocessing BASIC is historically normal (some): A former BBS software author recalls using C64 compilers that optimised code so programs too large to run as written could still execute. They offer no specifics.
- GOSUB without line numbers is a red flag (a few): One reader found the listing's use of GOSUB with no line numbers immediately suspicious, which prompted the portability concern.
Links from the comments