Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: HTML5 Canvas
03-04-2012, 01:20 PM #1
- Join Date
- Mar 2012
- Thanked 1 Time in 1 Post
i have a sprite to move over a canvas and just wondered if i can add barriers around the edges of the canvas to stop the sprite leaving it?
thanks in advance
03-04-2012, 06:39 PM #2
No there is no such thing as barriers in web coding.
If an element is not large enough to contain or show its content, it will either expand, ad scrollbar, display the exceedding content outside its borders, or discard exceeding content.
It is up to you to code it so the content is inside its border.