MCPcopy Create free account
hub / github.com/NianBroken/Firework_Simulator / seqRandomShell

Function seqRandomShell

js/script.js:907–918  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

905
906//随机生成一个烟花
907function 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
920function seqRandomFastShell() {
921 const shellType = randomFastShell();

Callers 1

startSequenceFunction · 0.85

Calls 3

launchMethod · 0.95
getRandomShellSizeFunction · 0.85
shellFromConfigFunction · 0.85

Tested by

no test coverage detected