This file contains 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
ig.module( | |
'game.entities.character' | |
) | |
.requires( | |
'game.entities.clickable', | |
'game.entities.difference', | |
'plugins.entityExtensions' | |
) |
This file contains 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
ig.module ( | |
'game.entities.Player' | |
) | |
.requires( | |
'impact.entity', | |
'impact.game', | |
'impact.font' | |
) | |
.defines(function(){ |
This file contains 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
/* generator | |
* | |
* takes a chance value, C, an array of objects, and returns a Generator | |
* function that computes a random value, R. if R < C the Generator returns | |
* nothing, else the Generator returns a random item from the array of | |
* objects. | |
* | |
* params: | |
* chance: floating point value between [0,1]. | |
* objs: array of objects to select from. |