Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas doesn't line up with grid #329

Open
MegaMissingno opened this issue Apr 18, 2015 · 6 comments
Open

Canvas doesn't line up with grid #329

MegaMissingno opened this issue Apr 18, 2015 · 6 comments

Comments

@MegaMissingno
Copy link

On 16: Lasers I noticed the lasers wouldn't show on the right edge of the grid but would kill me anyway. Just ended up brute forcing my way through that until it worked. But then on 17: Pointers I realized it was simply that the canvas is thinner than the grid, and this makes it frustratingly difficult to impossible to read the lines I placed that are supposed link from one teleporter to another. I could still get through it if I had the patience, and I could probably just try and offset all my coordinates until they line up again, but I'm sure later levels will be even more troublesome anyway.

Screenshot of level 16

Screenshot of level 17

I'm on Chromium 41.0.2272.76, running on LinuxMint 17.1 (64-bit)

@AlexNisnevich
Copy link
Owner

Oh weird. I'll see if I can reproduce this in Linux Mint.

@andybarron
Copy link

Hotfix: Multiplying canvas X coordinates by 1.08 in your level code makes everything line up ;)

@spruce
Copy link

spruce commented Jul 29, 2015

Having the same Problem

@AlexNisnevich
Copy link
Owner

I'm not sure why this is so platform-dependent. We'll have to find a solution that works for everyone.

@ghost
Copy link

ghost commented Oct 28, 2015

Oh strange, well you don't need the canvas to get pointers.jsx....

@ZufengW
Copy link
Contributor

ZufengW commented Oct 28, 2017

A problem is that the drawingCanvas is set to width 600 and height 500, but the screen canvas can have a different width.
#402

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants