Discord
Login
Community
DARK THEME

Screen coords

https://microstudio.dev/i/JimB007/screencoords/

In this demo I move the coordinates to the edge of the screen / corner.

When I change the size of the browser window while this demo is running - the writing / drawing direction is reversed with respect to both axes (on a separate page and during editing). Only the lower left corner does not have this disorder.

I think this is a bug in the MicroStudio engine.

Firefox browser version 101.

I have updated my demo so that coords.set() is called every time in the main update loop. This will fix the resizing issue:

update = function()
  // Call this each update to ensure that the coordinate
  // system is maintained whenever the screen is resized
  coords.set("LEFT,"TOP")
end

Fixed in the engine too, see: https://github.com/pmgl/microstudio/issues/148

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community