breakout/ball.js

13 lines
203 B
JavaScript

Object.assign(self, {
collider: circle2d.clone(),
img: sprite.clone({path:"ball.png"}),
phys: 0,
elasticity: 1,
friction: 0,
scale: 10,
collide(hit) {
Sound.play("bump.wav");
},
});