Skip to content

Instantly share code, notes, and snippets.

@tajuszk
Created June 19, 2020 13:26
Show Gist options
  • Save tajuszk/1d0409e0959d42356cd5afcd57f77e27 to your computer and use it in GitHub Desktop.
Save tajuszk/1d0409e0959d42356cd5afcd57f77e27 to your computer and use it in GitHub Desktop.
// 攻撃したらパワーアップ
function attackA () {
damage(10) // ダメージ10を与える
effect() // ダメージエフェクトを出す
powerUp() // attackAは攻撃力が上がる
}
// 効果はないけどダメージが強い
function attackB () {
damage(20) // ダメージ20を与える
effect() // ダメージエフェクトを出す
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment