Added a dev envoirment

This commit is contained in:
sam
2023-11-24 11:42:53 +01:00
parent a0df8f1b95
commit 8420d58c06
4 changed files with 105 additions and 0 deletions

18
webdev/web/game.js Normal file
View File

@@ -0,0 +1,18 @@
// the function setup() is called once when the page is loaded
function setup(){
// create a canvas element and append it to the body
createCanvas(1250, 600);
// 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);
}