xxxxxxxxxx
26
/*
Meme project
by Gal Ben Baruch
*/
var img;
var x = 100;
var y = 400;
function preload(){
img = loadImage("why meme.png");
}
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
textSize(20);
stroke('black');
text('Me when an enemy in a game attacks me and starts running away when it is about to die:', 10, 10, y);
image(img, 0, x, y, height-x);
}