Log In  

Cart #negokuraba-0 | 2024-03-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3


Simple pico paint programm i made for fun.
Move - UP DOWN RIGHT LEFT
Paint - X
Change Color - O

P#144540 2024-03-26 15:33

1

well made :D but i got an idea on how to make it simpler: use "map()" (draw the map) and "mset(x,y,spr)" (set a tile on the map) so you dont have to use a table ;)

P#144636 2024-03-27 06:13
1

@851523, The history of drawing approach is in my opinion the best starting point for an image editor, as the undo feature that is a must have will require rewriting a lot of the code if you went for the map() based approach first.
If the tool is expanded to serious levels, both approaches are needed simultaneously anyway :

  • history only makes things laggy after the draw list becomes too long.
  • map only make mistakes irreversibly destroy the WIP image.
    With both, you have no lag during drawing operations, and only lag when undoing that requires to replay all the drawing operations except the last.
    It is possible to get no lag even with undo at the price of extra memory by saving a screen snapshot every few draw actions so you only have to redraw from the last screen snapshot instead of from the very start.
    If @TehBeeKnee and you are interested in a collab to expand the tool to a more serious level, I'm in.
P#144643 2024-03-27 07:33

@RealShadowCaster
All of these ideas sound great but i wouldnt be able to implement it, i am very beginner.

P#144860 2024-03-28 15:58

@TehBeeKnee, do you have previous experience with other programming languages ? I could help you with the pico-8 and lua specifics.

P#144965 2024-03-29 10:06

@RealShadowCaster I know the basics of python, some javascript and a little c#. But im planning to learn lua.

P#144969 2024-03-29 11:28

[Please log in to post a comment]