Skip to content

Commit 5717fca

Browse files
committed
map_editor: PRINT CHR$(14) at boot for ASCII underscore glyph
C64 default charset is upper/graphics so file paths like 'level1_cave.json' rendered the underscore as a back-arrow (position 95 in upper/graphics = leftward arrow). Switching to upper/lowercase via CHR$(14) maps that slot to a real underscore, matching the on-disk path text the editor is showing.
1 parent ea84275 commit 5717fca

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

examples/map_editor.bas

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ SCREEN 4
3737
DOUBLEBUFFER ON
3838
BACKGROUNDRGB 32, 32, 48
3939
CLS
40+
' Switch to upper/lowercase charset so the file paths in the
41+
' header (level1_cave.json etc.) render with a real underscore
42+
' rather than the C64 upper/graphics glyph at position 95 (a
43+
' back-arrow). PRINT CHR$(14) reloads the charrom in lowercase
44+
' mode; CHR$(142) reverts.
45+
PRINT CHR$(14)
4046

4147
' --- map storage caps (covers shooter 10x100 = 1000 cells and RPG
4248
' overworld 32x32 = 1024 cells; pick a comfortable upper bound).

0 commit comments

Comments
 (0)