Skip to content

Instantly share code, notes, and snippets.

@daniel-schroeder-dev
Created August 21, 2021 21:11
Show Gist options
  • Save daniel-schroeder-dev/8669fa3794c150f11949018166d575b3 to your computer and use it in GitHub Desktop.
Save daniel-schroeder-dev/8669fa3794c150f11949018166d575b3 to your computer and use it in GitHub Desktop.
monn
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