Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add command TEXT from TBXL #100

Open
lhuven opened this issue Dec 27, 2024 · 3 comments
Open

add command TEXT from TBXL #100

lhuven opened this issue Dec 27, 2024 · 3 comments

Comments

@lhuven
Copy link

lhuven commented Dec 27, 2024

It would be great, if possible, to have the command implemented in Fast Basic, to be able to display text from the string at position x, y, also in the graphics mode, as it's done with TEXT command in Turbo Basic XL 1.5:

TEXT x, y, A$
TEXT x, y, "HELLO"

Thank you very much :)

@Atari-Fan
Copy link

and all variations, e.g.:

TEXT X,Y,0
TEXT X,Y,HEX$(A)
TEXT X,Y,SIN(X)

etc...

@EricCarrGH
Copy link
Contributor

EricCarrGH commented Dec 28, 2024

Are you aware of the POSITION x,y command?

POSITION 5,10:PRINT "text"

Or shorthand:

POS.5,10:?"text"

Then you can leverage the powerful PRINT command:

POS.8,8
?"Hello, ";name$;". Your score is ";score

@lhuven
Copy link
Author

lhuven commented Dec 28, 2024

Are you aware of the POSITION x,y command?

POSITION 5,10:PRINT "text"

It will not let you display characters in graphics mode. TEXT in TBXL works similar to POS. X, Y: PRINT "TEXT" in GR.0, but in graphics modes like GR.7, 8, 15 etc it will actually display characters in graphics window, not colours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants