javascript - canvas arc() in js has a larger hidden radius than what is actually shown -


i have pseudo-pong game here on jsfiddle. problem i'm having seems there's extra, wider radius on circle can see. i'm using plane.arc() method draw circle, , don't know how can fix problem. in advance!

the code using size (=100) detect collisions using arcsize (=20) draw ball. change value of size 100 20. remove arcsize declaration. change arcsize size in arc function call. game should work.

note in code bouncing ball off top , left walls, code using center of ball. code needs account ball size.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -