Improve gameplay
This commit is contained in:
parent
7412bc8af5
commit
793d9a81e8
27 changed files with 275 additions and 226 deletions
5
shared/src/helper/charge.ts
Normal file
5
shared/src/helper/charge.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { clamp01 } from './clamp';
|
||||
import { settings } from '../settings';
|
||||
|
||||
export const holdDurationToCharge = (heldSeconds: number): number =>
|
||||
clamp01(heldSeconds / settings.chargeShotFullHoldSeconds);
|
||||
Loading…
Add table
Add a link
Reference in a new issue