Friday 27 May 2011

Variables

Here is a list of the variables I've used in the game:


//booleans
var herbhaircollect:Boolean=false;
var herbfridgecollect:Boolean=false;
var herbcircuscollect:Boolean=false;
var bookherbcollect:Boolean=false;

var strawberrydrawercollect:Boolean=false;
var henhousestrawberrycollect:Boolean=false;
var barnstrawberrycollect:Boolean=false;
var medicinestrawberrycollect:Boolean=false;
var bookstrawberrycollect:Boolean=false;
var treestrawberrycollect:Boolean=false;
var mudstrawberrycollect:Boolean=false;
var plantpotstrawberrycollect:Boolean=false;
var haystrawberrycollect:Boolean=false;
var strawberrymirrorcollect:Boolean=false;

var henclick:Boolean=false;
var geteggs:Boolean=false;

var cakecolour:int = 0;

As I mentioned before, the majority of these were used to stop items from reappearing and being recollected.

The henclick is so that when the hen has jumped out the tree, it stays vanished from the main environment.
The geteggs is for when you close down the farmers speech, he sends the eggs to the bakery for you.
The cakecolour stores a number which is used to help determine which frame of the birthday cake to go to (directs you to the right colour.)

No comments:

Post a Comment