SOURCE

let x=20;
let y=35;
let v=200;
let b=60;
function setup(){
    createCanvas(500,500);
    background(120,64,0,70);
}
function draw(){
    noStroke();
    rect(200,20,260,0)
    rect(300,0,140,50);
    rect(200,170,75,150);
    rect(200,240,-60,40);
    rect(300,115,-440,-95);
    rect(400,-45,45,250);
    rect(270,140,230,65);

if(keyIsPressed){
        if(keyCode == 37){
            x-=2;
        }
        else if(keyCode == 39){
            x+=2;
        }
        else if(keyCode == 38){
            y-=2;
        }
        else if(keyCode == 40){
            y+=2;
        }
}
        stroke(0);
    ellipse(v,b,30,30);
    }
console 命令行工具 X clear

                    
>
console