add platform types

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-28 22:25:20 +09:00
parent 81a5d890ec
commit 7a0bca9938
7 changed files with 201 additions and 60 deletions

22
src/game/constants.js Normal file
View File

@@ -0,0 +1,22 @@
export const GAME_COLORS = {
background: '#e8e2d6',
basicPlat: '#6c8ae4',
movingPlat: '#4cc9f0',
springPlat: '#80ed99',
oneTimePlat: '#e76f51',
startingPlat: '#f4a261'
};
export const PLATFORMS_GAP = 80;
export const PLATFORM_WIDHT = 70;
export const PLATFORM_HEIGHT= 15;
export const PLAT_TYPE = {
BASIC: 'basic',
MOVING: 'moving',
SPRING: 'spring',
ONE_TIME: 'one-time'
};