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

Function Tree

source/gameplay.js:344–351  ·  view source on GitHub ↗
(game, frame)

Source from the content-addressed store, hash-verified

342/***********************************************************************************/
343
344var Tree = function(game, frame) {
345 Phaser.Sprite.call(this, game, 0, 0, 'imgTree', frame);
346
347 this.game.physics.arcade.enableBody(this);
348
349 this.body.allowGravity = false;
350 this.body.immovable = true;
351};
352
353Tree.prototype = Object.create(Phaser.Sprite.prototype);
354Tree.prototype.constructor = Tree;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected