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
@@ -10,7 +10,7 @@ import { slotAt } from '@nalssigak/shared/lib/weatherText'
|
||||
import { track } from '../lib/analytics'
|
||||
import { cx } from '../lib/utils'
|
||||
import { useAuth } from './authContext'
|
||||
import { createGame, DROP_Y, H, LEVELS, LINE_Y, loadBest, randomLevel, roundTarget, saveBest, W, windDir, type Game } from './cloudMerge'
|
||||
import { createGame, DROP_Y, H, HOLIDAY, LEVELS, LINE_Y, loadBest, randomLevel, roundTarget, saveBest, W, windDir, type Game } from './cloudMerge'
|
||||
import { useLevel } from './level'
|
||||
import { iconSrc } from './lib'
|
||||
import { useRegion } from './regionContext'
|
||||
@@ -213,7 +213,7 @@ export function CloudMergePage() {
|
||||
const onUp = (e: PointerEvent<HTMLCanvasElement>) => {
|
||||
const game = gameRef.current
|
||||
if (!game || over || performance.now() < coolRef.current) return
|
||||
if (dropsRef.current === 0) track('game_start', { again: play > 0, logged_in: loggedIn, wind_ms: windMs })
|
||||
if (dropsRef.current === 0) track('game_start', { again: play > 0, logged_in: loggedIn, wind_ms: windMs, theme: HOLIDAY?.key ?? 'basic' })
|
||||
dropsRef.current += 1
|
||||
game.drop(nextRef.current, toX(e))
|
||||
coolRef.current = performance.now() + 450
|
||||
|
||||
Reference in new issue
Block a user