So I'm making a simple coin dropping game I have already created coin objects with a simple Bodies.circle. However I want to replace that with a coin image. This is what I have so far.....
this.body = Bodies.circle(x, y, r, {
restitution: 1,
friction:0,
render: {
sprite:{
texture: 'images/coin.png'
}
}
});
this.r = r;
World.add(world, this.body);
}