Asset

4x8 Text

5

qwaffe 2021-02-28 08:10 (Edited)

Not-so-tiny text

Uses BG0 and BG1, BG1 scrolled 4 px to the right

Syntax:

CALL T4(X,Y,TEXT$)
Writes TEXT$ at (X,Y)
X: 0-63 (the initial visible area is 0-39)
Y: 0-31 (the initial visible area is 0-15)
Note that you can scroll the background.

CALL T4W(X,Y,TEXT$)
Writes TEXT$ at (X,Y) which wraps from 0-39 (the width of the screen)
X: 0-39
Y: 0-31 (the initial visible area is 0-15)

CALL CLRAT
Clears all 4x8 text on the screen (chars 229-255)

v2: the alphabet chars are now at the end of the char data (230-255), uses char 0 as space so it needs to be empty.

v2.1: added CLRAT, renamed text function, some other examples

v2.2: added T4W, some other examples

4x8 text v2.1.nx | Open in app
2021-03-01 00:15
4x8 text v2.nx | Open in app
2021-02-28 08:27
4x8 text.nx | Open in app
2021-02-28 08:10

G-9 2021-03-01 19:49

Nice but uses both BGs so ..


Log in to reply.