Skip to content

STORM

My feedback

1 result found

  1. 374 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    192 comments  ·  General » Other  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    STORM commented  · 

    Here’s one:

    fill('zombie grid')
    zombies = 10
    level = 1
    song('danube',10)

    function spawn() {
    x = random(-400,0)
    y = random(200,1000)
    zom = stamp('zombie9',x,y,100)
    speed = 1100 + level * 100
    zom.move(RIGHT,speed,15000)
    }

    repeat(spawn,zombies)

    function tap() {
    ball = stamp('egg5',780,500,30)
    ball.aim(x,y)
    ball.move(UP,1000,500)
    sound('balloon',30)
    }

    count = 0

    function fire(z) {
    if (z.hits('egg5') && z.x > 0)

    {
    z.move(z.x,z.y).burn()
    ball.hide()
    sound('yeti',10)
    count+=1
    }
    function die() {}
    function next () {}
    }
    function loop(){
    find('zombie9').forEach(fire)
    find('zombie9').forEach(die)
    next()
    }

    function die (z) {
    if (z.x > 768){
    sound('scream',10)
    reset('braindead')
    text('LEVEL:' + level,310,820)
    }


    }

    note = text('WAVE '+ level,320,65)
    function levelup() {
    level += 1
    zombies = zombies + 1
    note.change ('WAVE ' + level)
    repeat(spawn,zombies)
    }

    function next () {
    if (count == zombies) {
    count = 0
    delay(levelup,3000)

    }

Feedback and Knowledge Base