Monday, July 4, 2016

A Special Script

var family = [mom,dad,sim,chel];

var rootlet3 = {
Name: 'Evan Joshua',
WeightOz:140oz,
AgeDays:1,
RatingStars:5,
eat:function(){return true;},
sleep:function(){return true;},
poop:function(){return true;},
init:function(self){
       window.setInterval(self.eat, 3600000);
       window.setInterval(self.sleep, 3600000);
       window.setInterval(self.poop, 3600000);
    }
};

family.push(rootlet3);
rootlet3.init(rootlet3);






No comments: