수익화: 광고 간격 저장·보상형 광고·Play 결제·시즌 패스·꾸미기·미디에이션·초대 링크·결과 공유
앱 - 전면 광고: 판 수를 기기에 저장해 앱을 다시 켜도 이어 센다. 규칙은 "마지막 전면 뒤 3판 이상 + 세션 첫 판 제외" - 보상형 광고: 30분 전면 끄기, TIME ATTACK 이어하기(1판 1회, 기록·리더보드 미반영), 리소 스킨·흑연 보드 해금 - Play Billing 9.1: remove_ads / supporter_pack(비소모) / season_pass(소모). 승인 즉시, 시즌 패스는 서버 적용 뒤 소비, 실행 때마다 복원 - 상점 탭: 시즌 패스 트랙, 블록 스킨 7종·보드 테마 5종, 배지 장착, 상품, 구매 복원 - 광고 제거 구매 시 배너·결과·전면 끔 (보상형은 선택지로 유지) - AdMob 미디에이션 어댑터: AppLovin, Pangle - 커스텀 방 초대 링크 https://tetrig.pages.dev/r/CODE (앱 링크) + 공유, 결과 카드 PNG 공유 - 로비·리더보드·프로필에 배지 표시 서버 - 0002_shop 마이그레이션: season_xp, user_items, purchases, users.badge - 시즌 패스 XP(솔로 10/커스텀 20+10/리그 25+15), 30레벨 무료·프리미엄 트랙 - /api/pass, /api/purchase(Google Play Developer API 검증, PLAY_SA_KEY), /api/badge - 게스트 병합·계정 삭제 시 패스·아이템·구매 이전/삭제 웹 - /r/<코드> 초대 안내 페이지, scripts/build-pages.sh, 개인정보처리방침·스토어 문구 갱신 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -98,7 +98,7 @@ export class RoomLogic {
|
||||
const p = this.players.get(uid);
|
||||
return {
|
||||
id: p.uid, nick: p.nick, guest: p.guest, wins: p.wins, alive: p.alive, inRound: p.inRound,
|
||||
connected: p.connected, rematch: p.rematch, tr: p.tr ?? null, rank: p.rank ?? null,
|
||||
connected: p.connected, rematch: p.rematch, tr: p.tr ?? null, rank: p.rank ?? null, badge: p.badge ?? null,
|
||||
};
|
||||
}),
|
||||
};
|
||||
@@ -127,7 +127,7 @@ export class RoomLogic {
|
||||
return { ok: true, rejoined: true };
|
||||
}
|
||||
const p = {
|
||||
uid, nick: info.nick ?? "?", guest: !!info.guest, tr: info.tr ?? null, rank: info.rank ?? null,
|
||||
uid, nick: info.nick ?? "?", guest: !!info.guest, tr: info.tr ?? null, rank: info.rank ?? null, badge: info.badge ?? null,
|
||||
connected: true, disconnectedAt: 0,
|
||||
wins: 0, inRound: false, alive: false, place: 0,
|
||||
target: null, autoTarget: null, autoTargetAt: 0, lastAttacker: null,
|
||||
@@ -485,6 +485,6 @@ export class RoomLogic {
|
||||
|
||||
function pickInfo(info) {
|
||||
const o = {};
|
||||
for (const k of ["nick", "guest", "tr", "rank"]) if (k in info) o[k] = info[k];
|
||||
for (const k of ["nick", "guest", "tr", "rank", "badge"]) if (k in info) o[k] = info[k];
|
||||
return o;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user