feat(bunsik): 메뉴별 요리 창(메뉴 고르기→2~3단계 조리→완성) + 어린이용 화면 UI 새 디자인

- 요리: 조리대 버튼 → 요리 창. 주문 있는 메뉴만 고름(서버도 검사), 메뉴마다 다른 단계
  (톡톡/꾹/문지르기, 실패 없음), 화구 업그레이드로 누르는 양 감소. Recipes(순수 로직)+Kitchen(화면)
- 서버: cook에 메뉴 인자, 조리대 거리 검사, Orders/Hand 속성, 주문 말풍선을 그림으로(받으면 하트)
- 경제: 한 접시에 손이 더 가므로 떡볶이·김밥·순대 15·25·40원, 시뮬레이터가 요리 창 시간 반영(확장 9:47)
- UI: 사탕색 테마(흰 바탕·같은 계열 테두리·숫자는 Fredoka), 버튼 묶음 정리, 상점 5x2 카드,
  마스코트 떡이 튜토리얼 말풍선, 손에 든 음식 표시, 알림 3개 제한, 움직임은 살 수 있는 것에만
- 그림: 요리 재료·도구 33칸 추가(ui_icons v2), 조리 도구·마스코트 큰 그림(kitchen.png), 톡톡 효과음
- 검사: 단위 테스트(Recipes 71, Layout 1642 등) + 로블록스 서버 통합 테스트 801/801

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-13 16:14:23 +09:00
parent 05848d19d6
commit 02df9101bb
36 changed files with 3432 additions and 860 deletions

View File

@@ -659,6 +659,407 @@ def hand(c):
fill_stroke(c, lin(0, 6, 0, 122, "#ffe9d0", "#f5c89a"))
# ---------------------------------------------------------------- 요리 화면 재료·도구 (칸 32~63)
def ellipse(c, cx, cy, rx, ry):
c.save()
c.translate(cx, cy)
c.scale(rx, ry)
c.arc(0, 0, 1, 0, 2 * math.pi)
c.restore()
def bowl(c, top, inner, lw=LW):
"""옆에서 본 둥근 그릇. inner: 그릇 안 음식 색(위쪽 타원)."""
c.move_to(12, 60)
c.line_to(116, 60)
c.curve_to(114, 98, 92, 116, 64, 116)
c.curve_to(36, 116, 14, 98, 12, 60)
c.close_path()
fill_stroke(c, lin(0, 60, 0, 116, *top), lw)
ellipse(c, 64, 60, 52, 14)
fill_stroke(c, rgb(inner), 5)
def rice_cake(c):
# 떡 한 개(가로)
rrect(c, 14, 44, 100, 40, 20)
fill_stroke(c, lin(0, 44, 0, 84, "#fff8ee", "#f3e3cc"))
rrect(c, 26, 52, 44, 8, 4)
c.set_source_rgba(1, 1, 1, 0.9)
c.fill()
def rice_cake_red(c):
# 양념 묻은 떡
rrect(c, 14, 44, 100, 40, 20)
fill_stroke(c, lin(0, 44, 0, 84, "#ff8a6a", "#d92f1c"))
rrect(c, 26, 52, 44, 8, 4)
c.set_source_rgba(1, 1, 1, 0.6)
c.fill()
def rice_cakes(c):
# 떡이 담긴 그릇(누르는 도구)
for x, y, a in ((42, 46, -0.5), (64, 36, 0.2), (86, 46, 0.5), (54, 52, 0.1), (76, 54, -0.3)):
c.save()
c.translate(x, y)
c.rotate(a)
rrect(c, -18, -8, 36, 16, 8)
c.restore()
fill_stroke(c, lin(0, y - 8, 0, y + 8, "#ffffff", "#efdcc2"), 4)
bowl(c, ("#8fd3ff", "#3b82f6"), "#f3e3cc")
shine(c, 30, 84, 6, 12, 0.5)
def sauce_bowl(c):
# 고추장 양념 그릇 + 숟가락
c.set_line_cap(cairo.LINE_CAP_ROUND)
for w, col in ((14 + LW, INK), (12, rgb("#e2e8f0"))):
c.move_to(78, 54)
c.line_to(110, 10)
c.set_line_width(w)
c.set_source_rgb(*col)
c.stroke()
bowl(c, ("#ffffff", "#cbd5e1"), "#e8341c")
shine(c, 40, 56, 14, 4, 0.5)
shine(c, 30, 84, 6, 12, 0.5)
def sauce_blob(c):
# 팬에 부은 빨간 양념(넓은 타원, 테두리 없음)
ellipse(c, 64, 64, 62, 46)
c.set_source(rad(64, 64, 64, "#ff6a4a", "#e8341c", "#c41e10"))
c.fill()
for x, y, r in ((40, 50, 6), (80, 70, 5), (60, 84, 4), (90, 46, 4)):
c.arc(x, y, r, 0, 2 * math.pi)
c.set_source_rgba(1, 0.8, 0.7, 0.55)
c.fill()
def spatula(c):
# 볶음 주걱(대각선)
c.save()
c.translate(64, 64)
c.rotate(-0.75)
rrect(c, -6, -10, 12, 72, 6)
fill_stroke(c, lin(-6, 0, 6, 0, "#e0a96d", "#a8662e"), 5)
rrect(c, -22, -60, 44, 54, 14)
fill_stroke(c, lin(0, -60, 0, -6, "#fff3c4", "#ffb84a"), 6)
for dx in (-8, 0, 8):
rrect(c, dx - 2, -50, 4, 30, 2)
c.set_source_rgba(*INK, 0.35)
c.fill()
c.restore()
def bubble(c):
c.arc(64, 64, 40, 0, 2 * math.pi)
c.set_source_rgba(1, 1, 1, 0.35)
c.fill_preserve()
c.set_source_rgba(1, 1, 1, 0.95)
c.set_line_width(8)
c.stroke()
shine(c, 50, 48, 10, 7, 0.9)
def steam(c):
c.set_line_cap(cairo.LINE_CAP_ROUND)
for w, col in ((18, (0.62, 0.72, 0.85, 0.8)), (11, (1, 1, 1, 1))):
for x in (34, 64, 94):
c.move_to(x, 118)
c.curve_to(x - 22, 92, x + 22, 70, x, 44)
c.curve_to(x - 14, 30, x + 10, 18, x, 8)
c.set_source_rgba(*col)
c.set_line_width(w)
c.stroke()
def fillings(c):
# 김밥 재료 쟁반(단무지·당근·시금치·달걀·햄)
rrect(c, 8, 70, 112, 40, 14)
fill_stroke(c, lin(0, 70, 0, 110, "#ffe9c7", "#e6b77a"))
for i, col in enumerate(("#ffe14a", "#ff8c1a", "#3fae49", "#fff3a0", "#ff8fa3")):
x = 18 + i * 20
rrect(c, x, 22 + (i % 2) * 8, 14, 62, 7)
fill_stroke(c, rgb(col), 4)
def mat(c):
# 김발(대나무 말이)
rrect(c, 10, 22, 108, 84, 10)
fill_stroke(c, lin(0, 22, 0, 106, "#d9f2a4", "#94c25a"))
for i in range(1, 9):
x = 10 + i * 12
c.move_to(x, 26)
c.line_to(x, 102)
c.set_source_rgba(*INK, 0.35)
c.set_line_width(3)
c.stroke()
shine(c, 30, 36, 12, 6, 0.6)
def knife(c):
c.save()
c.translate(64, 64)
c.rotate(-0.6)
rrect(c, -10, 18, 20, 44, 8)
fill_stroke(c, lin(-10, 0, 10, 0, "#7c4a24", "#4a2a12"), 5)
c.move_to(-14, 20)
c.line_to(-14, -46)
c.curve_to(-14, -60, 4, -64, 16, -52)
c.line_to(16, 20)
c.close_path()
fill_stroke(c, lin(-14, 0, 16, 0, "#ffffff", "#cbd5e1", "#94a3b8"), 6)
rrect(c, -8, -44, 6, 50, 3)
c.set_source_rgba(1, 1, 1, 0.8)
c.fill()
c.restore()
def gimbap_slice(c):
c.arc(64, 64, 52, 0, 2 * math.pi)
fill_stroke(c, rgb("#1f2a1f"))
c.arc(64, 64, 40, 0, 2 * math.pi)
c.set_source_rgb(1, 1, 1)
c.fill()
for dx, dy, col in ((-12, -10, "#ff8c1a"), (12, -8, "#ffd23a"), (0, 12, "#3fae49"), (-14, 12, "#ff8fa3"), (14, 12, "#fff3a0")):
c.arc(64 + dx, 64 + dy, 9, 0, 2 * math.pi)
c.set_source_rgb(*rgb(col))
c.fill()
def sundae_raw(c):
# 접시에 담긴 통순대(누르는 도구)
ellipse(c, 64, 92, 58, 22)
fill_stroke(c, lin(0, 70, 0, 114, "#ffffff", "#cbd5e1"))
c.move_to(20, 84)
c.curve_to(14, 40, 70, 30, 72, 60)
c.curve_to(74, 84, 108, 84, 110, 60)
c.set_line_cap(cairo.LINE_CAP_ROUND)
for w, col in ((30 + LW, INK), (30, rgb("#5a2e3c"))):
c.move_to(20, 84)
c.curve_to(14, 40, 70, 30, 72, 60)
c.curve_to(74, 84, 108, 84, 110, 60)
c.set_line_width(w)
c.set_source_rgb(*col)
c.stroke()
c.move_to(24, 70)
c.curve_to(24, 48, 60, 40, 64, 56)
c.set_line_width(5)
c.set_source_rgba(1, 1, 1, 0.45)
c.stroke()
def sundae_piece(c):
# 순대 한 토막(옆)
rrect(c, 10, 40, 108, 48, 24)
fill_stroke(c, lin(0, 40, 0, 88, "#8a5a6a", "#5a2e3c", "#3a1a24"))
rrect(c, 24, 48, 50, 8, 4)
c.set_source_rgba(1, 1, 1, 0.4)
c.fill()
def sundae_slice(c):
c.arc(64, 64, 50, 0, 2 * math.pi)
fill_stroke(c, rad(64, 64, 54, "#8a5a6a", "#5a2e3c", "#3a1a24"))
for dx, dy in ((-16, -12), (12, -16), (16, 10), (-10, 16), (0, 0), (-20, 4)):
c.arc(64 + dx, 64 + dy, 6, 0, 2 * math.pi)
c.set_source_rgba(1, 0.85, 0.8, 0.7)
c.fill()
def fish_cake(c):
# 납작한 어묵 한 장(누르는 도구)
c.save()
c.translate(64, 64)
c.rotate(-0.15)
rrect(c, -52, -36, 104, 72, 14)
c.restore()
fill_stroke(c, lin(0, 28, 0, 100, "#ffe2a8", "#f2b46b", "#d98a3a"))
c.save()
c.translate(64, 64)
c.rotate(-0.15)
rrect(c, -40, -26, 50, 8, 4)
c.restore()
c.set_source_rgba(1, 1, 1, 0.6)
c.fill()
def batter(c):
# 튀김옷 그릇
bowl(c, ("#ffd1dc", "#ff7aa2"), "#fff6d6")
for x, y in ((48, 58), (76, 62), (62, 56)):
c.arc(x, y, 4, 0, 2 * math.pi)
c.set_source_rgba(*INK, 0.2)
c.fill()
shine(c, 30, 84, 6, 12, 0.5)
def shrimp(c, body, tail, dots):
c.save()
c.translate(64, 64)
c.rotate(-0.5)
c.move_to(-54, 0)
c.curve_to(-54, -28, 30, -28, 40, -6)
c.line_to(40, 6)
c.curve_to(30, 28, -54, 28, -54, 0)
c.close_path()
c.restore()
fill_stroke(c, body)
c.save()
c.translate(64, 64)
c.rotate(-0.5)
polygon(c, [(38, -2), (60, -20), (54, 0), (60, 20), (38, 2)])
c.restore()
fill_stroke(c, rgb(tail), 5)
if dots:
for x, y in ((36, 72), (50, 64), (64, 56), (46, 82), (60, 74), (74, 66), (30, 62)):
c.arc(x, y, 3.5, 0, 2 * math.pi)
c.set_source_rgba(1, 1, 1, 0.6)
c.fill()
def shrimp_raw(c):
shrimp(c, lin(20, 20, 110, 110, "#ffd0c2", "#ff9e8a", "#f07a66"), "#ff6b4a", False)
for i in range(4):
c.save()
c.translate(64, 64)
c.rotate(-0.5)
c.move_to(-30 + i * 16, -16)
c.curve_to(-26 + i * 16, -4, -26 + i * 16, 4, -30 + i * 16, 16)
c.restore()
c.set_source_rgba(*INK, 0.3)
c.set_line_width(3)
c.stroke()
def shrimp_batter(c):
shrimp(c, lin(20, 20, 110, 110, "#fffdf2", "#fff1c9", "#f5dfa0"), "#ff6b4a", True)
def tongs(c):
c.set_line_cap(cairo.LINE_CAP_ROUND)
c.set_line_join(cairo.LINE_JOIN_ROUND)
for w, col in ((14 + LW, INK), (14, rgb("#cbd5e1"))):
c.move_to(40, 118)
c.line_to(30, 20)
c.line_to(54, 10)
c.move_to(88, 118)
c.line_to(98, 20)
c.line_to(74, 10)
c.set_line_width(w)
c.set_source_rgb(*col)
c.stroke()
rrect(c, 30, 96, 68, 22, 10)
fill_stroke(c, lin(0, 96, 0, 118, "#ff8a5a", "#d92f1c"), 6)
def customer(c):
# 손님 얼굴(주문 수 표시)
c.arc(64, 70, 46, 0, 2 * math.pi)
fill_stroke(c, rad(64, 70, 50, "#fff1e0", "#ffd7b0", "#f5b885"))
c.move_to(18, 64)
c.curve_to(18, 10, 110, 10, 110, 64)
c.curve_to(96, 40, 40, 36, 18, 64)
c.close_path()
fill_stroke(c, lin(0, 20, 0, 64, "#6b4a3a", "#3f2a20"), 5)
for x in (48, 80):
c.arc(x, 74, 6, 0, 2 * math.pi)
c.set_source_rgb(*INK)
c.fill()
c.arc(x + 2, 72, 2, 0, 2 * math.pi)
c.set_source_rgb(1, 1, 1)
c.fill()
c.arc(64, 88, 10, 0.15 * math.pi, 0.85 * math.pi)
c.set_source_rgb(*INK)
c.set_line_width(4)
c.stroke()
for x in (36, 92):
ellipse(c, x, 90, 8, 5)
c.set_source_rgba(1, 0.5, 0.55, 0.5)
c.fill()
def mascot_face(c):
# 떡이(떡볶이 떡 캐릭터) 얼굴 + 요리사 모자
rrect(c, 14, 40, 100, 78, 36)
fill_stroke(c, lin(0, 40, 0, 118, "#ffffff", "#ffe4d6"))
# 모자
for x, y, r in ((40, 30, 20), (64, 20, 24), (88, 30, 20)):
c.arc(x, y, r, 0, 2 * math.pi)
fill_stroke(c, rgb("#ffffff"), 5)
rrect(c, 30, 30, 68, 20, 6)
fill_stroke(c, rgb("#ffffff"), 5)
rrect(c, 34, 32, 60, 14, 4)
c.set_source_rgb(1, 1, 1)
c.fill()
# 눈·입·볼
for x in (46, 82):
ellipse(c, x, 76, 7, 9)
c.set_source_rgb(*INK)
c.fill()
c.arc(x + 2, 72, 3, 0, 2 * math.pi)
c.set_source_rgb(1, 1, 1)
c.fill()
c.move_to(54, 90)
c.curve_to(58, 102, 70, 102, 74, 90)
c.close_path()
fill_stroke(c, rgb("#ff6b6b"), 4)
for x in (32, 96):
ellipse(c, x, 92, 9, 6)
c.set_source_rgba(1, 0.45, 0.5, 0.55)
c.fill()
def heart(c):
c.move_to(64, 112)
c.curve_to(10, 74, 8, 30, 38, 22)
c.curve_to(52, 18, 62, 28, 64, 38)
c.curve_to(66, 28, 76, 18, 90, 22)
c.curve_to(120, 30, 118, 74, 64, 112)
c.close_path()
fill_stroke(c, lin(0, 20, 0, 112, "#ff9fb5", "#ff4d7a"))
shine(c, 40, 42, 10, 7, 0.7)
def cart(c):
# 상점(업그레이드) 버튼: 위쪽 화살표가 붙은 가게 차양
rrect(c, 18, 56, 92, 58, 10)
fill_stroke(c, lin(0, 56, 0, 114, "#fff7ec", "#f3d9b8"))
rrect(c, 50, 78, 28, 36, 6)
fill_stroke(c, lin(0, 78, 0, 114, "#ffb35a", "#e07a1f"), 5)
for i in range(5):
x = 10 + i * 22
c.move_to(x, 30)
c.line_to(x + 22, 30)
c.line_to(x + 22, 52)
c.curve_to(x + 22, 64, x, 64, x, 52)
c.close_path()
fill_stroke(c, rgb("#ff5a7a" if i % 2 == 0 else "#ffffff"), 5)
rrect(c, 8, 18, 112, 16, 8)
fill_stroke(c, rgb("#ff5a7a"), 5)
def pot_icon(c):
# 요리하기(냄비) 아이콘
rrect(c, 14, 50, 100, 60, 20)
fill_stroke(c, lin(0, 50, 0, 110, "#ff8a6a", "#d92f1c"))
rrect(c, 4, 58, 16, 14, 6)
fill_stroke(c, rgb("#7c4a24"), 5)
rrect(c, 108, 58, 16, 14, 6)
fill_stroke(c, rgb("#7c4a24"), 5)
ellipse(c, 64, 50, 52, 12)
fill_stroke(c, rgb("#ffcf5a"), 5)
for x in (44, 64, 84):
c.move_to(x, 34)
c.curve_to(x - 8, 24, x + 8, 16, x, 6)
c.set_source_rgba(1, 1, 1, 0.95)
c.set_line_width(6)
c.stroke()
shine(c, 32, 70, 8, 12, 0.5)
ICONS = [
("coin", coin), ("moneyBag", money_bag), ("bolt", bolt), ("gear", gear),
("upgrade", upgrade), ("plate", plate), ("lock", lock), ("check", check),
@@ -668,6 +1069,13 @@ ICONS = [
("Twigim", twigim), ("globe", globe), ("speaker", speaker), ("mouse", mouse),
("wrench", wrench), ("star", star), ("sparkle", sparkle), ("rays", rays),
("glow", glow), ("arrowDown", arrow_down), ("scroll", scroll), ("hand", hand),
("riceCake", rice_cake), ("riceCakeRed", rice_cake_red), ("riceCakes", rice_cakes), ("sauceBowl", sauce_bowl),
("sauceBlob", sauce_blob), ("spatula", spatula), ("bubble", bubble), ("steam", steam),
("fillings", fillings), ("mat", mat), ("knife", knife), ("gimbapSlice", gimbap_slice),
("sundaeRaw", sundae_raw), ("sundaePiece", sundae_piece), ("sundaeSlice", sundae_slice), ("fishCake", fish_cake),
("batter", batter), ("shrimpRaw", shrimp_raw), ("shrimpBatter", shrimp_batter), ("tongs", tongs),
("customer", customer), ("mascot", mascot_face), ("heart", heart), ("cart", cart),
("pot", pot_icon),
]