Untitled

 avatar
unknown
plain_text
a year ago
619 B
2
Indexable
fill("white");
textSize(60);
text("THE VOICES", 20, 60);
var black = createSprite(200, 200);
black.setAnimation("images.png_1");
black.scale = 20;
var duck = createSprite(200, 200);
duck.setAnimation("images.jpg_1");
function draw() {
  if (keyDown("w")) {
    duck.setAnimation("images.jpg_1");
    duck.y = duck.y - 20;
  }
  if (keyDown("a")) {
    duck.setAnimation("images.jpg_1");
    duck.x = duck.x - 20;
  }
  if (keyDown("s")) {
    duck.setAnimation("images.jpg_1");
    duck.y = duck.y - -20;
  }
  if (keyDown("d")) {
    duck.setAnimation("images.jpg_1");
    duck.x = duck.x - -20;
  }
  drawSprites();
}
Editor is loading...
Leave a Comment