Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- powerup = {}
- powerup.sprite = 1
- powerup.x = 0
- powerup.y = 0
- powerup.active = false
- function show-power-up()
- if powerup.active = false then
- powerup.x = rnd(120)
- powerup.y = rnd(120)
- powerup.active = true
- end
- if powerup.active = true then
- spr(powerup.sprite, powerup.x, powerup.y)
- end
- end
- function _Draw()
- cls()
- spr(player.sprite, player.x, player.y)
- show-power-up()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement