Files
J1B2-Game-controller/web/game.js
2023-11-22 15:19:05 +01:00

18 lines
458 B
JavaScript

// the function setup() is called once when the page is loaded
function setup(){
// create a canvas element and append it to the body
createCanvas(1200, 1000);
// disable the outline of shapes
noStroke();
}
// the function draw() is called every frame
function draw(){
// clear the background with a transparent black color
background(0,0,0,10);
// draw a circle at the mouse position
circle(mouseX, mouseY, 50);
}