Indie game developer 🇨🇦

Working on some games for game jams in my free time

Admin of programming.dev and frontend developer for sublinks

Account has automation for some scheduled posts

Site: https://ategon.dev/

  • 420 Posts
  • 464 Comments
Joined 3 years ago
cake
Cake day: June 8th, 2023

help-circle













  • In addition to what grant said. Cursors dont show and arent sent when logged out or when on mobile and are anonymous so people can’t tell whos cursor is who. Just a fun thing to add some activity to the canvas and make it feel more like a community instead of you placing pixels into a void







  • Random extra implemetation info.

    When viewing the canvas you send the left right top bottom of your screen and zoom to the server. The server then sends back all cursors that are valid to be shown based on what you sent. On future times you ask the server it only sends back what changed (so a cursor that doesnt move doesnt get sent again and your local version knows its just still in its same position). That helps cut down more on bandwidth being sent around.

    The map is split into various chunks of different sizes. When you send the position and zoom to the server it tries to fit you nicely into chunks and then the cursors it sends back are the cursors within those chunks. Then if somebody else asks for the cursors and they fit into the same chunks it sends back the same data to them due to it being cached for those chunks instead of computing it again which helps reduce server load.



  • For people on PC its on by default when logged in and can be turned off with a toggle in the settings. When logged out or on mobile its off

    Only the cursor is sent and there isnt a name shown currently unless you then place down a pixel and someone inspects that pixel to see who placed it

    Theres various things that are part of the change so that its optimized. You can only see cursors of people in similar zoom levels for example as one of those. Exact cursor positions arent shared but people just see the cursor snapped to the pixel on the canvas its hovering over so that objects sent are smaller




















Moderates