-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Hello, I'm trying to use jaws to make a game,
and I want scroll the screen when player leave.
I use "viewport.isInside(player)" to do this, but here has some problem.
It is a board game, one step is 32px, and my screen size is 320x320(10x10 square on screen), viewport's height & width is 320 too, x & y range is 0~319 from top left corner.
When player is on (320,y) or (x,320), the 11st square, it is totally leave the screen but viewport still think player is inside the viewport.
This may because min of x & y is 0, and min of height & width is 1?
Last, I have one more question, why you made "jaws.cutImage (image, x, y, width, height)" as private?
I think this is a useful function :P
Thanks!
Metadata
Metadata
Assignees
Labels
No labels