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

Function seqTriple

js/script.js:951–976  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

949}
950
951function seqTriple() {
952 const shellType = randomFastShell();
953 const baseSize = shellSizeSelector();
954 const smallSize = Math.max(0, baseSize - 1.25);
955
956 const offset = Math.random() * 0.08 - 0.04;
957 const shell1 = new Shell(shellType(baseSize));
958 shell1.launch(0.5 + offset, 0.7);
959
960 const leftDelay = 1000 + Math.random() * 400;
961 const rightDelay = 1000 + Math.random() * 400;
962
963 setTimeout(() => {
964 const offset = Math.random() * 0.08 - 0.04;
965 const shell2 = new Shell(shellType(smallSize));
966 shell2.launch(0.2 + offset, 0.1);
967 }, leftDelay);
968
969 setTimeout(() => {
970 const offset = Math.random() * 0.08 - 0.04;
971 const shell3 = new Shell(shellType(smallSize));
972 shell3.launch(0.8 + offset, 0.1);
973 }, rightDelay);
974
975 return 4000;
976}
977
978function seqPyramid() {
979 const barrageCountHalf = IS_DESKTOP ? 7 : 4;

Callers 1

startSequenceFunction · 0.85

Calls 3

launchMethod · 0.95
randomFastShellFunction · 0.85
shellSizeSelectorFunction · 0.85

Tested by

no test coverage detected