I’m a former ELA teacher who is teaching Computer Science for the first time, so I’m learning as I go. I’m on CSD Unit 3 Lesson 11. I can’t figure out why my text is not showing on top. Please advise. Here is my code.
var planet = createSprite(200, 200);
planet.setAnimation(“planet”);
var alien_1 = createSprite(90, 290);
alien_1.setAnimation(“alien_1”);
alien_1.scale = 0.25;
var alien_2 = createSprite(310, 290);
alien_2.setAnimation(“alien_2”);
alien_2.scale = 0.25;
var alien_3 = createSprite(200, 290);
alien_3.setAnimation(“alien_3”);
alien_3.scale = 0.25;
var crown = createSprite(90, 220);
crown.setAnimation(“crown”);
crown.scale = 0.2;
var confetti = createSprite(200, 200);
confetti.setAnimation(“confetti”);
confetti.scale = 2;
drawSprites();
fill(“yellow”);
textSize(30);
text(“Miss Universe 2022”, 60, 80);
function draw() {
confetti.y = randomNumber(200,220);
crown.x = randomNumber (80, 100);
drawSprites();
}