Organize src/game into sub-folders: arena, combat, fighter, and match

This commit is contained in:
2026-05-23 01:39:59 +09:00
parent bb08d5cee1
commit c9ce1a8afd
15 changed files with 50 additions and 50 deletions
@@ -0,0 +1,15 @@
export function easeOutCubic(progress) {
return 1 - (1 - progress) ** 3;
}
export function easeInOutCubic(progress) {
if (progress < 0.5) {
return 4 * progress ** 3;
}
return 1 - ((-2 * progress + 2) ** 3) / 2;
}
export function arcadePhysicsTimeScale(sceneTimeScale) {
return 1 / Math.max(sceneTimeScale, Number.EPSILON);
}