Jump to content

World size smaller than screen size


Starcluster
 Share

Recommended Posts

I want the world bounds to be smaller than the screensize. I'm making a breakout clone. The ball should collide the world at y=100, not at y=0. I've set the world bounds with game.world.setBounds(10, 100, ...). But there is no effect. The same with the x value. Only the change of the width and height parameter works. It's no problem, to handle the collision by myself, but it would be nice to handle it with phaser instead.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...