()
| 905 | |
| 906 | //随机生成一个烟花 |
| 907 | function seqRandomShell() { |
| 908 | const size = getRandomShellSize(); |
| 909 | const shell = new Shell(shellFromConfig(size.size)); |
| 910 | shell.launch(size.x, size.height); |
| 911 | |
| 912 | let extraDelay = shell.starLife; |
| 913 | if (shell.fallingLeaves) { |
| 914 | extraDelay = 4600; |
| 915 | } |
| 916 | |
| 917 | return 900 + Math.random() * 600 + extraDelay; |
| 918 | } |
| 919 | |
| 920 | function seqRandomFastShell() { |
| 921 | const shellType = randomFastShell(); |
no test coverage detected