Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( x < 0 ) {
- this.posX = 0;
- }
- else if (x > 10) {
- this.posX = 10;
- }
- else {
- this.posX = x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement