Wednesday, October 12, 2011

"Hey Ya!" Code

#include <Freestyle>
#include <Math.rand>
#include “Heya.mp3”

Main{
            Gather dancers
            Let random dancer be Andre 3000
            Start music
            While count is less than or equal to three
                        Wait
            Call Heya
            Start BackUpThread
            Start AndreThread
            Exit(EXIT_SUCCESS)
}

function Heya{
            define right = +1 right hand shake //left to right
            define left = +1 left hand shake //left to right
            define rightInv = -1 right hand shake //right to left
            define leftInv = -1 left hand shake //right to left
            for count equals 1 to 2
                        sing “Heeey”
                        right++
                        left++
                        sing “Yaaaa”
                        leftInv++
                        rightInv++
}

BackUpThread {
            Var count
            Sleep(“Fellas”) //wait until “fellas” is said
            If male
                        Cup hands around mouth
                        Say “Yeah!”
                        Sleep(“Cool”) //wait until “cool” is said
For count equals 1 to 2
                                    Shiver
                        Say “Ice Cold!”
Else
            Loiter
Sleep(“Ladies”) //wait until “ladies” is said
            Cup hands around mouth
            Say “Yeah!”
            Sleep(“Suga’”)
            Blow kiss
While Andre says shake it
            Shake //Shake something
Sleep(“Beyonce”)
            Place picture of Beyonce in front of face
Sleep(“Lucy Liu”)
            Place picture of Lucy Liu in front of face
}

AndreThread {
            Var count
            Sing “Hey, alright now\nAlright now fellas.”
            Sing “Now what’s cooler than being cool?”
            Cup hand around ear          
            Sing “I can’t hear ya. I say what’s cooler than being cool?”
            Cup hand around ear
            For count equals 1 to 14
                        Sing “Alright”
                        Number = rand(0,1)
                        Switch(Number)
Case 0: Jump in place
            Break;
Case 1: Jump around back up dancers
            Sing “OK now ladies”
            Cup hand around ear
            Start Freestyle
            Sing “I see we gonna break it down in just a few seconds”
            Sing “Don’t make me break it down for nothing”
            Sing “Now I wanna see y’all on y’all baddest behavior”
            Sing “Lend me some suga. I am your neighbor”
            For count  = 1  to 4
                        Sing “Shake it, shake, shake it”
            Sing “Shake it like a polaroid picture
            For count = 1 to 3
                        Sing “Shake it, shake, shake it”
            Sing “Shake it like a polaroid picture”
            Sing “Now all the Beyonce’s and Lucy Liu’s and baby dolls, get on the floor”
            For count = 1 to 3
                        Sing “You know what to dooo”
            Stop Freestyle
}

No comments:

Post a Comment