Created
June 19, 2020 13:26
-
-
Save tajuszk/1d0409e0959d42356cd5afcd57f77e27 to your computer and use it in GitHub Desktop.
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
// 攻撃したらパワーアップ | |
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