MCPcopy
hub / github.com/ssusnic/Machine-Learning-Flappy-Bird / TreeGroup

Function TreeGroup

source/gameplay.js:303–313  ·  view source on GitHub ↗
(game, parent, index)

Source from the content-addressed store, hash-verified

301/***********************************************************************************/
302
303var TreeGroup = function(game, parent, index){
304 Phaser.Group.call(this, game, parent);
305
306 this.index = index;
307
308 this.topTree = new Tree(this.game, 0); // create a top Tree object
309 this.bottomTree = new Tree(this.game, 1); // create a bottom Tree object
310
311 this.add(this.topTree); // add the top Tree to this group
312 this.add(this.bottomTree); // add the bottom Tree to this group
313};
314
315TreeGroup.prototype = Object.create(Phaser.Group.prototype);
316TreeGroup.prototype.constructor = TreeGroup;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected