was8bit 2024-11-19 15:20 (Edited)
..... a simple pixel draw by laying out all graphics in a cell grid and reading or writing any cell
Do not write to cell 0 as it will draw to all blank cells...
... for advanced pixel control: see nathanielbabiak
https://lowresnx.inutilis.com/user.php?id=221
Sylveon 2024-11-19 15:49
Classic POKE and PEEK :3
Sylveon 2024-11-19 15:49
Cool :3 thank you
Sylveon 2024-11-19 22:48
I’ll definitely use this for a pixel buffer :3 (and credit you)
was8bit 2024-11-19 22:54
Steps...
was8bit 2024-11-19 23:03 (Edited)
The read code manually converts a graphic cell data into an array using #'s 0 (blank) 1,2,3 matching the colors you use to edit an 8x8 graphic
Then the save code converts the array back into the proper format that lowres needs to display those pixels...
Each individual cell can only be one choice of color set#0-7
was8bit 2024-11-19 23:07 (Edited)
The SUBS actually only edit your graphic set, not the background screen itself..
.... the initial drawing of all 255 graphics to the screen is what simulates a pixel screen...
... alternatively, you can use just sprites, or some combination of both ideas...
Also, my pixel screen only uses 16 width, so you can bump the pixel array by +2 cells over to center your pixel screen
was8bit 2024-11-19 23:14
...yes, PEEK POKE... ;)
If you tap HELP and scroll down to the virtual memory map, you will find...
$8000 - Character Data (4 KB)
So i am actually directly accessing the graphic memory ;)
was8bit 2024-11-19 23:16
One additional hint... say you draw char#10 alot on the visual screen... making changes to char#10 memory will instantly show that change to all instances of char#10 on the screen ;)
was8bit 2024-11-19 23:39
Reflective symetry ;)
was8bit 2024-11-19 23:43 (Edited)
I believe i used the code Timo uses in the character editor, so no credit for me ;)
All i do is snag the data and put it into an array... ;)
Sylveon 2024-11-19 23:55
Thank you @was8bit now I understand pixel drawing :3 anyway, Thanks
Sylveon 2024-11-19 23:57
I’ll post the pixel buffer once i finish it :3
was8bit 2024-11-20 01:40
:)
Sylveon 2024-11-20 21:07
Here U go :3
was8bit 2024-11-21 05:43
:) neato :)