[NetBehaviour] objetdart4: Art in the Age of Digital Reproduction

Pall Thayer pallthay at gmail.com
Fri Jul 24 12:34:30 CEST 2015


var objetdart4 = function() {
    this.title = "Art in the Age of Digital Reproduction";
    this.credits = "Pall Thayer, 2015";
    this.life = 0;
    this.duration = 5;
    this.lives = [];

    this.objectsOfObjects = function() {
        maker = setInterval(makeObject, 1000);
    };

    var makeObject = function() {
        this.lives.push(new objetdart4());
        killObject();
    }.bind(this);

    var killObject = function() {
        for(var i = 0;i < this.lives.length;i++) {
            if(this.lives[i].life > this.duration) {
                delete this.lives[i];
                this.lives.splice(i, 1);
            }else{
                this.lives[i].life++;
            }
        }
        console.log(this.lives);
    }.bind(this);
};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.netbehaviour.org/pipermail/netbehaviour/attachments/20150724/4c10d629/attachment.htm>


More information about the NetBehaviour mailing list