stage.set_background_color("aliceblue") sprite = codesters.Sprite("treasurechest", -200, -200) sprite.flip_right_left() start = -250 end = 250 xcoord = random.randint(start, end) ycoord = random.randint(start, end) for counter in range(5): # image from https://cdn.pixabay.com/photo/2012/04/25/00/03/dove-41260_1280.png sprite = codesters.Sprite("dove_919", -200, -250) sprite.flip_right_left() sprite.set_size(.5) xcoord = random.randint(start, end) ycoord = random.randint(start, end) sprite.glide_to(xcoord, ycoord) start += 50 end -= 75 start = -175 end = -150 for counter in range(13): sprite = codesters.Sprite("butterfly", -175, -150) xcoord = random.randint(start, end) ycoord = random.randint(start, end) sprite.glide_to(xcoord, ycoord) start += 25 end += 50 sprite = codesters.Text("HOPE", 150, -200, "dodgerblue") sprite.set_text_size(60)
  • Run Code
  • Show Console
  • Codesters How To (opens in a new tab)