Initial Commit
This commit is contained in:
19
sketch.js
Normal file
19
sketch.js
Normal file
@@ -0,0 +1,19 @@
|
||||
var bg_image;
|
||||
|
||||
function preload(){
|
||||
bg_image = loadImage('img/map.png');
|
||||
}
|
||||
|
||||
function setup() {
|
||||
//createCanvas(windowWidth,windowHeight);
|
||||
}
|
||||
|
||||
function draw() {
|
||||
background(52,60,78);
|
||||
image(bg_image, 0,0, width, height);
|
||||
}
|
||||
|
||||
|
||||
function windowResized() {
|
||||
resizeCanvas(windowWidth, windowHeight);
|
||||
}
|
||||
Reference in New Issue
Block a user