xxxxxxxxxx
30
let thing;
function preload() {
thing = new Sprite();
thing.addAni('assets/test0001.png', 'assets/test0002.png', 'assets/test0003.png', 'assets/test0004.png');
}
function setup() {
createCanvas(windowWidth, windowHeight);
thing.x = width/2;
thing.y = height/2;
}
function draw() {
clear();
thing.vel.x = cos(frame);
//thing.move(mouse.x, mouse.y, 10);
}