Created
August 21, 2021 21:11
-
-
Save daniel-schroeder-dev/8669fa3794c150f11949018166d575b3 to your computer and use it in GitHub Desktop.
monn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
score = 0 | |
scoreText = addText(score, 32) | |
def shoot(target): | |
vanish(target) | |
global score | |
# add 1 to the score | |
# update the scoreText with the new score | |
updateText(textElement, theTextYouWantOnPage) | |
counter = 0 | |
while counter < 40: | |
counter = counter + 1 | |
ghost = addImage('ghost.png',40) | |
x = randomNum(100,1100) | |
y = randomNum(800,1200) | |
positionEl(ghost,x,y) | |
moveY(ghost,y,-70,1,True,20) | |
click(ghost,shoot) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment