xxxxxxxxxx
20
// The Nature Of Code 2
// Chapter 1 : Vectors
// let x, y;
// let pos;
let walker;
function setup() {
createCanvas(400, 400);
// x = width / 2;
// y = height / 2;
// pos = createVector(width / 2, height / 2);
walker = new Walker(width / 2, height / 2);
background(0);
}
function draw() {
walker.update();
walker.show();
}