Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
619 B
0
Indexable
Never
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();
}
Leave a Comment