xxxxxxxxxx
//1. create a default sprite named player:
//1a. position it on the left side of the canvas.
// 2. create a circle sprite named coin:
// 2a. set its initial position to the right side of the canvas.
// 2b. set its color to yellow.
// 3. move player towards the mouse position in every frame.
// 4. check if player overlaps with coin:
// 4a. if they overlap, remove the coin from the canvas.
let player, coin;
function setup() {
//no gravity necessary :D
new Canvas(400, 400);
// x = | y = | w = | h = | collider =
// x = | y = | w = | h = | collider =
}
function draw() {
clear();
}