Log In  

Cart #55935 | 2018-08-31 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Mostly finished, but it'd be nice to add background colors, some music and a menu for colors/brushes.

I had the idea for this when I was playing with the mouse devkit API and thought "Hey, what if there was Mario Paint but for PICO-8?".

CC4-BY-NC-SA, so feel free to strip out the (relatively simple) drawing and use it in your own works, though interestingly, it's text-based.

P#55932 2018-08-31 11:42 ( Edited 2018-09-02 06:08)

Just started playing with this. You might use LINE() instead of PSET() for dots as no matter how fast the mouse goes, it will always draw a line from point to point.

function _init()
  cls()
  poke(24365,1)
end

function _draw()
  x=stat(32) y=stat(33)
  if (x!=ox or y!=oy) and stat(34)==1 then
    line(x,y,ox,oy,7)
  end
  pset(ox,oy,c)
  ox=x oy=y
  c=pget(x,y)
  pset(x,y,15-c)
end

function _update()
end
P#55938 2018-08-31 13:01 ( Edited 2018-08-31 17:01)

I tried!

This would be really cool if you could switch colours. Also it would be great to have a customisable offset for drawing as the cursor does not seem to like up with system cursor (at least, in the web player).

P#56035 2018-09-02 02:08 ( Edited 2018-09-02 06:08)

@Lafolie u can switch the colors.
with the arrows

P#74546 2020-04-08 00:07

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 09:54:36 | 0.014s | Q:18