feat(bunsik): 가게 꾸미기 3D 투명 미리보기·회전, 테이블·의자 따로 배치, 아래 [사기] 막대 → 튜토리얼, 손님 느리게, 2배 돈 "이미 보유" 수정
- 아래 추천 [사기] 막대를 없애고 튜토리얼 말풍선을 아래 가운데로. 튜토리얼 3단계는 [가게 꾸미기]에서 의자 놓기
- 상점에서 꾸미기 탭을 빼고 따로 [가게 꾸미기] 버튼·창. 카드를 고르면 캐릭터 앞에 투명 미리보기가 붙어 다니고
[돌리기](R)·[놓기](F)로 그 자리에 놓음(놓을 때 돈). [옮기기]로 놓은 물건·조리대를 들어서 옮김
- 의자를 테이블에서 떼어 {x,z,f,r}로 저장(등받이로 방향 보임). 의자는 보는 쪽 앞에 테이블이 있어야 하고,
테이블을 옮기거나 돌리면 그 테이블을 보는 의자도 같이. 예전 {t,s} 저장은 자동 변환. 새 요청 buyAt
- 테이블은 의자 없이 따로 판매(20 + 15×테이블 수²)
- 손님 간격 10초 → 20초(손님 속도 갈래도 2배), 대신 음식값 2배로 1분 매출 유지. 실내 11분·2층 50분(봇)
- 2배 돈: 게임 주인은 게임패스를 자동 보유하는데 [처음부터]·2배 끄기 뒤 버튼이 결제 창을 띄워 "이미 보유"가 나옴.
누르면 먼저 보유를 확인해 바로 켜고, [처음부터]도 2배를 유지
- 검사 위치 0.5칸 자리 길 검사 오류 수정(touches가 막힌 칸 안쪽을 보던 문제)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -48,9 +48,9 @@ for _, d in DEVICES do
|
||||
carry = L.carry,
|
||||
hint = L.hint,
|
||||
toasts = L.toasts,
|
||||
card = L.card,
|
||||
settings = L.settings,
|
||||
list = L.list,
|
||||
decorate = L.decorate,
|
||||
double = L.double,
|
||||
boost = L.boost,
|
||||
promote = L.promote,
|
||||
@@ -59,7 +59,6 @@ for _, d in DEVICES do
|
||||
for name, r in hud do
|
||||
T.check(inside(r, L.width, L.height), `{tag}: {name} 화면 안`)
|
||||
end
|
||||
T.check(inside(L.buy, L.width, L.height), `{tag}: 사기 버튼 화면 안`)
|
||||
local names = {}
|
||||
for name in hud do
|
||||
table.insert(names, name)
|
||||
@@ -79,9 +78,9 @@ for _, d in DEVICES do
|
||||
T.check(inside(L.kitchen, L.width, L.height), `{tag}: 요리 창 화면 안`)
|
||||
T.check(inside(L.confirm, L.width, L.height), `{tag}: 홍보 확인 창 화면 안`)
|
||||
|
||||
-- 상점 창 안: 탭 4개와 내용 자리가 창 안에, 서로 안 겹침
|
||||
-- 상점 창 안: 탭 3개와 내용 자리가 창 안에, 서로 안 겹침
|
||||
local panelBox = { x = 0, y = 0, w = L.panel.w, h = L.panel.h }
|
||||
T.eq(#L.tabs, 4, `{tag}: 탭 4개`)
|
||||
T.eq(#L.tabs, 3, `{tag}: 탭 3개`)
|
||||
for i, t in L.tabs do
|
||||
T.check(inside(t, panelBox.w, panelBox.h), `{tag}: 탭 {i} 창 안`)
|
||||
T.check(not overlap(t, L.content), `{tag}: 탭 {i}와 내용 안 겹침`)
|
||||
@@ -92,11 +91,14 @@ for _, d in DEVICES do
|
||||
end
|
||||
end
|
||||
T.check(inside(L.content, panelBox.w, panelBox.h), `{tag}: 탭 내용 창 안`)
|
||||
-- 카드 칸(업그레이드 4x2, 꾸미기 5x2, 알바생 3x1): 손가락으로 누를 만큼 큼
|
||||
for _, grid in { { 4, 2 }, { 5, 2 }, { 3, 1 } } do
|
||||
T.check(inside(L.decorContent, panelBox.w, panelBox.h), `{tag}: 가게 꾸미기 내용 창 안`)
|
||||
T.check(L.decorContent.y >= Layout.HEADER_H, `{tag}: 가게 꾸미기 내용은 제목 띠 아래`)
|
||||
-- 카드 칸(업그레이드 4x2, 알바생 3x1, 가게 꾸미기 5x2): 손가락으로 누를 만큼 큼
|
||||
for _, grid in { { 4, 2, L.content }, { 3, 1, L.content }, { 5, 2, L.decorContent } } do
|
||||
-- ShopWindow의 칸: 내용 자리를 똑같이 나누고 칸마다 8씩 띄움
|
||||
local cw = L.content.w / grid[1] - 8
|
||||
local chh = L.content.h / grid[2] - 8
|
||||
local box = grid[3] :: Rect
|
||||
local cw = box.w / grid[1] - 8
|
||||
local chh = box.h / grid[2] - 8
|
||||
T.check(
|
||||
cw * L.scale >= 90 and chh * L.scale >= 90,
|
||||
`{tag}: {grid[1]}x{grid[2]} 카드가 손가락으로 누를 만큼 큼({math.floor(cw * L.scale)}x{math.floor(
|
||||
@@ -106,7 +108,8 @@ for _, d in DEVICES do
|
||||
end
|
||||
|
||||
-- 꾸미기 화면 버튼: 화면 안, 서로 안 겹침, 누르기 쉬움
|
||||
local deco: { [string]: Rect } = { exit = L.deco.exit, floor = L.deco.floor, info = L.deco.info }
|
||||
T.eq(#L.deco.tools, 3, `{tag}: 꾸미기 버튼 3개`)
|
||||
local deco: { [string]: Rect } = { exit = L.deco.exit, info = L.deco.info }
|
||||
for i, r in L.deco.tools do
|
||||
deco["tool" .. i] = r
|
||||
end
|
||||
@@ -128,9 +131,9 @@ for _, d in DEVICES do
|
||||
if d.touch then
|
||||
local zones = Layout.touchZones(d.w, d.h)
|
||||
local buttons: { [string]: Rect } = {
|
||||
buy = L.buy,
|
||||
settings = L.settings,
|
||||
list = L.list,
|
||||
decorate = L.decorate,
|
||||
double = L.double,
|
||||
boost = L.boost,
|
||||
promote = L.promote,
|
||||
@@ -142,9 +145,11 @@ for _, d in DEVICES do
|
||||
T.check(not overlap(p, zones.jump), `{tag}: {name} 버튼이 점프 버튼 자리 피함`)
|
||||
T.check(p.h >= 44, `{tag}: {name} 버튼 높이 {math.floor(p.h)}px ≥ 44(어린이 손가락)`)
|
||||
end
|
||||
-- 꾸미기 화면에서는 걸어 다니므로 조이스틱 자리도 피함
|
||||
for name, r in deco do
|
||||
local p = px(r, L.scale)
|
||||
T.check(not overlap(p, zones.jump), `{tag}: 꾸미기 {name}이 점프 버튼 자리 피함`)
|
||||
T.check(not overlap(p, zones.stick), `{tag}: 꾸미기 {name}이 조이스틱 자리 피함`)
|
||||
if name ~= "info" then
|
||||
T.check(p.h >= 44, `{tag}: 꾸미기 {name} 버튼 높이 {math.floor(p.h)}px ≥ 44`)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user