Search This Blog

Sunday, 26 February 2012

PRG 1

Individual Activity: Update Enviroment Variables (1 frame)

step 1
Each frame, X is incremented by R and Y is incremented by T. if X becomes greater than 5000 then Y is decremented by 1000. if Y becomes less than 0, Y and X are set to 0
step 2
R
T
step 3
X incremented by R
Y incremented by T
step 4
start
get R
get T
get X is incremented by R
get Y is incremented by T
if X > 5000
{
then Y - 1000
{
if Y < 0
Y set 0
X set 0
}
}

end

No comments:

Post a Comment