/phony game - spawn function.js Secret
Created
January 10, 2019 11:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (this.config.bulletType == 'simple') { | |
this.spawnFunction = (xPos, yPos, direction) => new SimpleBulletObject(xPos, yPos, direction); | |
} else if (this.config.bulletType == 'score') { | |
this.spawnFunction = (xPos, yPos, direction) => new ScoreBulletObject(xPos, yPos, direction); | |
} else { | |
logManager.warning('Unknown bullet type "' + type + '" in spawner config. Defaulting to "simple"') | |
this.spawnFunction = (xPos, yPos, direction) => new SimpleBulletObject(xPos, yPos, direction); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment