phaser icon indicating copy to clipboard operation
phaser copied to clipboard

tilemap zoom, change the canvas size

Open RiCoTeRoX opened this issue 8 years ago • 10 comments

Phaser v3@latest

Showable in here

Steps: .- Fill at least half of the map with balls .- Zoom all in .- Zoom default .- Canvas size changed (bug)

RiCoTeRoX avatar Jan 22 '18 23:01 RiCoTeRoX

No matter how hard I try I cannot re-create this. I filled the entire map with balls, hit ctrl + until I couldn't zoom any further in Chrome, hit ctrl + 0 and it was still just an 800x600 canvas.

Can anyone else replicate this?

photonstorm avatar Jan 23 '18 00:01 photonstorm

i forgot to say... I am on macbook (touchbar) and zooming with the (big) trackpack

my bad.

RiCoTeRoX avatar Jan 23 '18 00:01 RiCoTeRoX

I can't replicate it either (in Chrome or FF on windows). Any chance you've got a bunch of chrome extensions installed?

mikewesthad avatar Jan 23 '18 00:01 mikewesthad

yes i have some extensions but i tested without them, with the same result. Maybe this video help. Maybe is not a bug and is only a weird behavior. video

in the video you can see when i zoom in, the top, apparently, is of the screen is the top of the canvas.

RiCoTeRoX avatar Jan 23 '18 12:01 RiCoTeRoX

I'm not sure what I'm looking at here. The canvas looks to be the same size at the start of the video as it is at the end of the video.

mikewesthad avatar Jan 23 '18 13:01 mikewesthad

I've watched this video several times now and I don't really get what I'm meant to be seeing either, sorry! Maybe a 'before' and 'after' screen shot would be better? or run Chrome inspector on the canvas and tell us what the size was at the start vs. the end.

photonstorm avatar Jan 23 '18 13:01 photonstorm

the title "canvas size" maybe is not very clear. There are many maybe in this publication. sorry. the behavior I want to show you is when I zoom in-out, all the balls seem to be pushed down and I think it's because the zooming. video: 0:10 - 0:20 seconds

RiCoTeRoX avatar Jan 23 '18 14:01 RiCoTeRoX

Ahhh ok!! It don't think it's anything to do with the zooming actually. If you just leave the simulation running they will be pushed down eventually, because matter can't cope with that many non-static, non-sleeping bodies crammed on-top of each other.

photonstorm avatar Jan 23 '18 14:01 photonstorm

ok 👍 feel free to close this issue 🚀

RiCoTeRoX avatar Jan 23 '18 14:01 RiCoTeRoX

Ditto to that - yeah, at a certain point Matter can't resolve all those tiny collisions. Thanks for pointing it out @RiCoTeRoX.

mikewesthad avatar Jan 23 '18 14:01 mikewesthad