Commit 2daab4b4 authored by Monika's avatar Monika
Browse files

push ball on click mouse

parent 3130d324
......@@ -54,6 +54,7 @@ function ClientBall($el) {
attributes.y += attributes.vy;
},
redraw: function () {
console.log(attributes.x, attributes.y, 'ball');
attributes.el.css('top', attributes.y);
attributes.el.css('left', attributes.x);
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment