Skip to content

Instantly share code, notes, and snippets.

@Boemu
Last active May 9, 2016 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Boemu/5eac3599fc6ef7cea5fe370d4681ca65 to your computer and use it in GitHub Desktop.
Save Boemu/5eac3599fc6ef7cea5fe370d4681ca65 to your computer and use it in GitHub Desktop.
はてなブログ用
_addLevel: function(value) {
for (var i = 0; i < value; i++) {
cc.log("[ENEMY]LEVEL UP!!");
// 能力値アップ
this.level++;
this.maxHP++;
this.attackPower++;
this.defensePower++;
this.knockBackPower++;
}
// TODO: 各能力値のラベルに適用
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment