feat: 기념일 꾸밈 — 할로윈·빼빼로데이·크리스마스·추석 기간에만 이야기 주제와 구름 합치기 그림이 바뀜
frontend/src/b/holiday.ts 한 곳에 기간·주제·배경·게임 그림. ?holiday=<key> 로 미리 보기. GA: game_start theme 추가, talk_post topic 6~9.
This commit is contained in:
1 parent
48299e3ac5
commit
4fec164364
36 files changed
+171
-13
No files matched your search
@@ -1,7 +1,8 @@
|
||||
import Matter from 'matter-js'
|
||||
import { currentHoliday } from './holiday'
|
||||
|
||||
/** 작은 것부터 큰 것 순서. 같은 단계 둘이 닿으면 다음 단계로 합쳐지고, 해 둘은 사라지며 보너스 */
|
||||
export const LEVELS = [
|
||||
const BASE = [
|
||||
{ icon: 'muggy', name: '물방울', r: 15, color: '#d9f0ff' },
|
||||
{ icon: 'snow', name: '눈송이', r: 21, color: '#e4ecff' },
|
||||
{ icon: 'cloud', name: '구름', r: 28, color: '#f1f3f8' },
|
||||
@@ -12,6 +13,10 @@ export const LEVELS = [
|
||||
{ icon: 'sun', name: '해', r: 78, color: '#ffd2a1' },
|
||||
] as const
|
||||
|
||||
/** 기념일엔 그림·이름만 그날 것으로 (크기·색·합치기 규칙은 그대로) */
|
||||
export const HOLIDAY = currentHoliday()
|
||||
export const LEVELS = BASE.map((l, i) => (HOLIDAY ? { ...l, ...HOLIDAY.game[i] } : l))
|
||||
|
||||
export const W = 360
|
||||
export const H = 540
|
||||
/** 이 선 위에 쌓인 채로 LOSE_MS 넘게 있으면 끝 */
|
||||
|
||||
Reference in new issue
Block a user