Release

Micro Text - (YAMTM)

3

Dan 2021-07-19 20:39 (Edited)

Yet Another Micro Text Mod.

Hi, this is my mod of G-9's Micro Text: https://lowresnx.inutilis.com/topic.php?id=880
which is a mod of Timo's Micro Text: https://lowresnx.inutilis.com/topic.php?id=54

I have changed the display code (a bit) so that it can be printed/located freely.

Commands are:

MCLS, MLOCATE(x,y), Mprint(Txt$), MWrite(txt$)

MCLS - (This should be used before all other commands, at least once, and after every normal CLS command)
It is used to clear the screen (and to setup the correct view !)
(p.s. my initial intention was to use the code without the raster call, but later i decided to try it out, and it worked even with more rows).

MLocate(x,y) sets the char printing position at the coordinate x,y.
Valid coordinates are X: 0-39, Y: 0-20

Mprint(txt$) prints the char and adds a new line for the next print/write command.

Mwrite(txt$) same as print, but it does not add a new line. Use this to continuously write on the same line (til the end of the screen).

NEW VERSION:

Added simple nonblocking input function (you can type while the rest of the program is running)

MInput (x,y,txt$,ret$)

x,y are the coordinate at which the input will be done.
txt$ is the text which should be displayed before the input text.
ret$ - here you should enter a predefined string variabe, which will hold the input text, when you press the enter.


Edit: Limited the input text to 256 chars.
Fixed a font bug of :
Changed the @ char.
Changed the 2 to be a bit distinguishable from the z

EDIT: Added a blinking cursor.

P.s. Write "end" in the demo to end the program.


G-9 2021-07-20 10:15

Very nice :)
Please add an input function…
I originally did remix Timo’s micro test to make an input function, but It was too hard…
Let’s see if you can make it … challenge time … :3


Dan 2021-07-20 19:17

Yeah, done ^^


G-9 2021-07-20 19:32

Omg how did you do ?!
Nice nice nice !! :) :)


G-9 2021-07-20 19:33 (Edited)

This will be kinda useful for rpgs…

(snek pek ?!)


Dan 2021-07-20 20:07 (Edited)

Had to edit some chars. But now it seems ok.

Have fun ^^


nathanielbabiak 2021-08-13 03:17 (Edited)

This looks really good! I think you might be the first person to upload an input algorithm on this site. I've been thinking about it for a while, but seeing your algorithm was super helpful, made it easier for me - and inspired me to make my own here.


Log in to reply.