Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- if(x > PLAYER.screen.width-width-16)
- {
- x = PLAYER.screen.width-width-16;
- }
- else if(x < 16)
- {
- x = 16;
- }
- if(y > PLAYER.screen.height-height-16)
- {
- y = PLAYER.screen.height-height-16;
- }
- else if(y < 16)
- {
- y = 16;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement