oakmound / oak

A pure Go game engine
Apache License 2.0
1.52k stars 84 forks source link

JS does not support a Window Scale that is not 1 #187

Open 200sc opened 2 years ago

200sc commented 2 years ago

If you provide JS with a window scale other than 1, (say, 2), you'll get something like this:

image

Where the image is duplicated horizontally, cut in half, because that's the raw byte data we sent the canvas.

This can be worked around by manually scaling things up yourself for a given game but it's not optimal.