xxxxxxxxxx
30
let song;
let system;
let nook;
let candle;
let hill;
const length = 480;
function preload() {
song = loadSound('Jim- Croce_Time-In-A-Bottle.mp3');
}
function setup() {
createCanvas(length, length);
noCursor();
candle = new Candle();
nook = new Window();
hill = new Scenery();
system = new System();
song.play();
}
function draw() {
background(70);
hill.show();
system.run();
nook.show();
candle.show();
}