Would be nice if they actually stayed on the canvas...

in programming •  2 years ago 

The html game I'm making for TAFE study always has something to work out on it.
Right now it would be nice if spawned characters could spawn on the html canvas rather than a small part of them spawning on the edges.
pug bee cut off.PNG

Mostly posting just to show what it is doing but if anyone in this community knows what to do to fix this, any help would be greatly appreciated.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
Loading...

They now bounce backwards if they go outside the bounds of the canvas.