Discussion

A random idea

1

Benimo12 2021-06-30 01:03

So, imagine an engine whose collision is based on what characters appear on screen. It could be something like this:
X = wall/floor
W = Liquid
+ = collectibles
Something like that so that PRINT commands can be used to make levels.
PRINT “XXXWWWXXX” would be like a jump.


was8bit 2021-06-30 01:42 (Edited)

If i understand what you are asking....

You will have to continously scan the background contents so your code can detect and respond to any changes... also you must use characters in cells rather than sprites.. also this approach comes with tricky issues and "animation" and movement must be restricted to cell to cell, and it also uses a lot of CPU power...

Here is an example of how i do it...

https://lowresnx.inutilis.com/topic.php?id=1818


was8bit 2021-06-30 02:02

Another trick for PRINT is to add a font set on page 4, and edit the fonts into graphics... the upside is that you can PRINT the grapgics to the screen... the downside is that you lose acces to the alphabet and numbers ...


was8bit 2021-06-30 02:43 (Edited)

You also might check out this approach....

https://lowresnx.inutilis.com/topic.php?id=1581

This approach allows you to use characters to create a randomly created platform, the code then scans for characters to convert them into interactive sprites, and then the player can play the platform...

This yields smooth animation, and precision interaction with the environment.. but it takes a LOT of work to set this all up...


was8bit 2021-06-30 05:05

If you are just talking about sprites interacting with bg cell charactes, Timo has this covered here...

https://lowresnx.inutilis.com/topic.php?id=318


crosoft312 2021-06-30 12:52

I think you can redefine the text characters to graphical characters.
I have no idea how, but I think it is possible.

An easier way might be to use DATA statements like https://lowresnx.inutilis.com/topic.php?id=1932

You would have a program to read in the data and convert it to characters on the screen.

I don't know much of nx, so, I'm kinda just guessing.


was8bit 2021-06-30 13:38

@crosoft, i mentioned that briefly... goto page 4 of your character pages, add a font set (it is a button option to add a font) then edit and save... if you redesign the text into graphics, then PRINT will add your text/graphics to the screen...

... however, since lowres uses page 4 as your font set, now if you want to print text will show up as graphics...

If page 4 is left blank, lowres secretly uploads a default font set.... any editing to page 4 will begin to overwrite this default font set....


crosoft312 2021-06-30 14:24 (Edited)

Thank you!


nathanielbabiak 2021-06-30 15:49 (Edited)

you actually don't need to give up the ability to print letters if you also want the ability to print graphics... you could use the FONT command to adjust the default location of the font. it's usually 192 (page 4) but you could change it to 128 (page 3) and put your graphics there. E.g., when you want to print graphics, you'd use FONT 128 and when you want to print letters, you'd use FONT 192.


was8bit 2021-06-30 16:20 (Edited)

@nathanial, that is a great idea :)


Log in to reply.