Hey everyone! I made a cartridge you make art by pasting squares and triangles. It was inspired by Rhythm n' Face, a game where you move shapes to the rhythm to make a face.
Controls:
D-pad/arrow keys = move shape
X + up = change shape
X + left = rotate shape 90 degrees counter-clockwise
X + down = change shape's color
X + right = flip shape across its shorter flat side
O/Z = paste shape
You can access various options through the menu.



Nice idea, but sad you can't save or share your WIP drawings.
Here's a few suggestions for the pause menu :
SCREENSHOT
(Simply call extcmd("screen") )
EXPORT TO CLIPBOARD
You'll have to encode the draw instructions as a string, so we can post our creations on the BBS.
printh(s,"@clip")
IMPORT FROM CLIPBOARD.
s=stat(4)
EXPORT AS [GFX]
clipboard, but in the [gfx] string format
IMPORT AS [GFX]



@RealShadowCaster I don't think I know how to make the GFX thing happen because the program uses sprites to render the image, but I can definitely make it possible to take a screenshot and import and export images as a string!



function screen_to_gfx() local s="[".."gfx".."]8080" local convert={[0]="0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"} for y=0,127 do for x=0,127 do s..=convert[pget(x,y)] end end s..="[/gfx]" return s end |
This is taking into account the fact that you are using the default palette.
In the general case, you need to peek the memory for the current palette and assign the convert array accordingly, potentially with letters after F if you are using some of the 16 secret colors.
The weird cut in the header of the gfx string is because the code gets interpreted as an image by the website otherwise.
[Please log in to post a comment]