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

Function launchShellFromConfig

js/script.js:895–901  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

893
894// Launches a shell from a user pointer event, based on state.config
895function launchShellFromConfig(event) {
896 const shell = new Shell(shellFromConfig(shellSizeSelector()));
897 const w = mainStage.width;
898 const h = mainStage.height;
899
900 shell.launch(event ? event.x / w : getRandomShellPositionH(), event ? 1 - event.y / h : getRandomShellPositionV());
901}
902
903// Sequences
904// -----------

Callers 1

handlePointerStartFunction · 0.85

Calls 5

launchMethod · 0.95
shellFromConfigFunction · 0.85
shellSizeSelectorFunction · 0.85
getRandomShellPositionHFunction · 0.85
getRandomShellPositionVFunction · 0.85

Tested by

no test coverage detected