fixed the text rendering

This commit is contained in:
AArt1256 2025-11-29 17:38:05 +03:00
parent 0de9f70a71
commit 04884ca72a
5 changed files with 17 additions and 15 deletions

View file

@ -5,7 +5,6 @@ line_addrs = []
char_cnt = 0
for line in f:
if line == '':
if char_cnt >= 40: char_cnt = 0
line_addrs.append(char_cnt)
char_cnt = 0
else:
@ -16,7 +15,9 @@ for line in f:
i += 1
str = line[i+1:]
str = str.upper()
str = str.replace("\\N","")
if "\\N" in str: str = str.split("\\N")[0]
print(str)
#str = str.replace("\\N","")
char_cnt += len(str)
line_addrs.append(char_cnt)

View file

@ -363,6 +363,7 @@
4
4 w
4 e\n
4
4 G
4 o

View file

@ -1532,6 +1532,14 @@ part_11:
jsr load_8000_zx02
jsr $a000
jsr init_bmp
ldx #0
lda #$80
:
sta $400+(40*(25-5)), x
inx
cpx #40*5
bne :-
jsr set_irq_badguy
inc enable_music
lda #0
@ -1542,19 +1550,11 @@ part_11:
sta text_ptr+1
cli
.repeat 5
lda #<256
jsr wait_frame_until
lda #<256
jsr wait_frame_until
lda #<256
jsr wait_frame_until
lda #<256
jsr wait_frame_until
lda #<256
jsr wait_frame_until
lda #<256
jsr wait_frame_until
lda #301-256
.endrepeat
lda #144
jsr wait_frame_until
sei
@ -1862,12 +1862,12 @@ update_dialog:
ldy #0
lda (text_ptr),y
cmp #$fe
bne @skip_reset_col
cmp #$ff
bne :+
rts
:
cmp #$fe
bne @skip_reset_col
ldx dialog_col
cpx #40*2
beq @skip_reset