You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't seem to get a viewport to render only on the bottom part of the canvas. I can get it to render on only the top part just fine.
canvas size is 500,320
// render top half - works
viewport_top = new jaws.Viewport({max_x: width*32, max_y: height*32, height:160 })
//expected this to render to the bottom half of the canvas
viewport_bottom = new jaws.Viewport({max_x: width*32, max_y: height*32, height:160, y: 160 })
The text was updated successfully, but these errors were encountered:
the problem I am trying to solve with this is that I have a tilemap of tree sprites. the player is centered on the full "ground" tilemap and I want to draw the sprites with y < player first, then the player, then the y > player sprites.
I think I'll try using TileMap.atRect next and simplify my viewports.
I can't seem to get a viewport to render only on the bottom part of the canvas. I can get it to render on only the top part just fine.
canvas size is 500,320
The text was updated successfully, but these errors were encountered: