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

Function launchShell

js/script.js:985–991  ·  view source on GitHub ↗
(x, useSpecial)

Source from the content-addressed store, hash-verified

983 const randomSpecialShell = randomShell;
984
985 function launchShell(x, useSpecial) {
986 const isRandom = shellNameSelector() === "Random";
987 let shellType = isRandom ? (useSpecial ? randomSpecialShell : randomMainShell) : shellTypes[shellNameSelector()];
988 const shell = new Shell(shellType(useSpecial ? largeSize : smallSize));
989 const height = x <= 0.5 ? x / 0.5 : (1 - x) / 0.5;
990 shell.launch(x, useSpecial ? 0.75 : height * 0.42);
991 }
992
993 let count = 0;
994 let delay = 0;

Callers 2

seqPyramidFunction · 0.85
seqSmallBarrageFunction · 0.85

Calls 2

launchMethod · 0.95
shellNameSelectorFunction · 0.85

Tested by

no test coverage detected