Log In  

Cart #paint_-2 | 2024-04-05 | Embed ▽ | No License
10

Online Paint! v4

  • new bugs!
  • new gui!

This is a simple Picotron cartridge that allows users to draw things online. It works with my server, so I hope people refrain from spamming.

Please note that there may still be some bugs as I wasn't able to check everything. If you encounter any, please let me know!)

P#145510 2024-04-02 19:22 ( Edited 2024-04-05 12:07)

This is really cool! I like that it takes time and effort to make something.
Two things that could make it a little bit better: the button being shown as held down while the placing operation is taking place so that the user doesn't end up trying to move and then being jumped to another place once its done loading, and the button only working when the user clicks there so that it can't be activated when just scrolling around the map.

P#145636 2024-04-04 01:48
1

Thanks. I am working to fix both!)

P#145651 2024-04-04 07:27

But, how does it work? I saw Picochat and it said you could only send 256 chars at once, so is this diffrent for each server or what, I like the idea. :)

P#145772 2024-04-05 06:46

Well for saving colors you need to save numbers and if you save them in a simple way you need to separate the numbers that will cost more data and the best way I found that you can save them is using different unicode chars like saving each 15 bits (3 colors) in one unicode or using numbers from 0-9 and a-v to cover 0-31 that the first way will be a little hard for decoding so I used the second idea.
At the start we send one request to the server to get the canvas data as a string of 128x128 and draw the pixels on a sprite then it will be drawn every frame on the screen and currently it doesn't update at all until you click the set button then it will again send a request to server but this time with pixel data and server will change that color as one letter and again return the string of canvas that will again be loaded into the sprite 002

P#145776 2024-04-05 07:29

Is this something I need to download and run under Picotron on my machine ? If not, then all I get here is the PSET window with loading in the middle of the screen, then it dies with an runtime error (the message should really be able to be copied so I can past it here), but there is a bad argument #1 to lower on line 51

P#145780 2024-04-05 10:21

Yes you need to download it because fetch doesn't work in the web version and I don't know any way to fix this.

P#145783 2024-04-05 10:51 ( Edited 2024-04-06 14:51)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-15 11:08:15 | 0.011s | Q:21