arslee07 / pb

a simple r/place clone
https://pb.arslee.me
7 stars 0 forks source link

Draw pixel on client canvas before sending it on server #12

Open danyairwing opened 2 years ago

danyairwing commented 2 years ago

My idea: -Draw pixel on canvas -Send request to the server -Wait for server response -Server response 200 - keep pixel on the canvas -Server response 404 - change pixel to previous color

It makes drawing a bit easier, since you don't have to wait for the pixel to appear and make sure its placed right.