feat(bunsik): 새 게임패스 3개(무지개 이름·사탕 궁전·한옥 디자인)와 개발자 상품 3개(손님 러시·손님 데려오기·홍보 광고 보상) 등록, 아이콘 그림

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-14 01:36:00 +09:00
parent 51298fcfa1
commit 80f5055ecd
9 changed files with 170 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
bunsik-tycoon/art/kick.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
bunsik-tycoon/art/rush.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -4,10 +4,10 @@
return {
DOUBLE_MONEY_PASS = 2026574937,
MONEY_BOOST_PRODUCT = 3717970589,
RAINBOW_NAME_PASS = 0, -- 가게 이름 무지개
CANDY_DESIGN_PASS = 0, -- 건물 디자인: 사탕 궁전
HANOK_DESIGN_PASS = 0, -- 건물 디자인: 한옥 분식집
RUSH_PRODUCT = 0, -- 손님 러시 10분(소모성)
KICK_PRODUCT = 0, -- 옆 가게 손님 쫓아내기 1회(소모성)
PROMOTE_AD_PRODUCT = 0, -- 보상형 광고 보상(홍보 1회). 광고 보상은 개발자 상품으로 받습니다
RAINBOW_NAME_PASS = 2033912456, -- 가게 이름 무지개
CANDY_DESIGN_PASS = 2034416415, -- 건물 디자인: 사탕 궁전
HANOK_DESIGN_PASS = 2034032432, -- 건물 디자인: 한옥 분식집
RUSH_PRODUCT = 3718393895, -- 손님 러시 10분(소모성)
KICK_PRODUCT = 3718393909, -- 옆 가게 손님 쫓아내기 1회(소모성)
PROMOTE_AD_PRODUCT = 3718393920, -- 보상형 광고 보상(홍보 1회). 광고 보상은 개발자 상품으로 받습니다
}

View File

@@ -203,12 +203,157 @@ def thumbnail():
return big.convert("RGB")
RAINBOW = [(255, 80, 80), (255, 160, 40), (255, 220, 50), (80, 200, 100), (60, 160, 255), (150, 90, 230)]
def rainbow_fill(size):
w, h = size
arr = np.zeros((h, w, 4), dtype=np.uint8)
n = len(RAINBOW) - 1
for x in range(w):
t = x / max(1, w - 1) * n
i = min(int(t), n - 1)
f = t - i
c = [int(RAINBOW[i][k] * (1 - f) + RAINBOW[i + 1][k] * f) for k in range(3)]
arr[:, x, :3] = c
arr[:, x, 3] = 255
return Image.fromarray(arr, "RGBA")
def rainbow_name():
img = background((120, 200, 255), (60, 120, 230))
d = ImageDraw.Draw(img)
# 이름판
d.rounded_rectangle([40, 150, 472, 360], radius=50, fill=(255, 250, 240), outline=(120, 70, 40), width=14)
f = font(150)
mask = Image.new("L", (S, S), 0)
ImageDraw.Draw(mask).text((256, 250), "가게", font=f, fill=255, anchor="mm")
outline = Image.new("L", (S, S), 0)
ImageDraw.Draw(outline).text((256, 250), "가게", font=f, fill=255, anchor="mm", stroke_width=10, stroke_fill=255)
img.paste((90, 40, 120, 255), (0, 0), outline)
img.paste(rainbow_fill((S, S)), (0, 0), mask)
for (x, y, r) in [(80, 110, 22), (430, 100, 28), (450, 400, 20), (70, 410, 26)]:
star(d, x, y, r, (255, 255, 200))
return img
def star(d, cx, cy, r, color):
pts = []
for i in range(8):
a = i * math.pi / 4 - math.pi / 2
rr = r if i % 2 == 0 else r * 0.35
pts.append((cx + rr * math.cos(a), cy + rr * math.sin(a)))
d.polygon(pts, fill=color)
def house(d, x0, y0, x1, y1, wall, trim, door):
d.rectangle([x0, y0, x1, y1], fill=wall, outline=trim, width=10)
cx = (x0 + x1) / 2
d.rounded_rectangle([cx - 40, y1 - 110, cx + 40, y1], radius=18, fill=door, outline=trim, width=8)
for wx in (x0 + 30, x1 - 110):
d.rounded_rectangle([wx, y0 + 40, wx + 80, y0 + 110], radius=12, fill=(200, 235, 255), outline=trim, width=8)
def candy_design():
img = background((255, 200, 230), (255, 130, 180))
d = ImageDraw.Draw(img)
house(d, 96, 230, 416, 450, (255, 210, 232), (255, 100, 160), (255, 140, 190))
# 줄무늬 차양
for i in range(8):
col = (255, 110, 165) if i % 2 == 0 else (255, 255, 255)
d.polygon([(80 + i * 44, 180), (124 + i * 44, 180), (124 + i * 44, 240), (80 + i * 44, 240)], fill=col)
d.rounded_rectangle([80, 170, 432, 250], radius=20, outline=(220, 70, 130), width=10)
# 하트 간판
d.ellipse([200, 70, 262, 132], fill=(255, 70, 130))
d.ellipse([250, 70, 312, 132], fill=(255, 70, 130))
d.polygon([(204, 112), (308, 112), (256, 170)], fill=(255, 70, 130))
# 막대사탕
for x in (50, 462):
d.line([(x, 470), (x, 330)], fill=(255, 255, 255), width=12)
d.ellipse([x - 40, 270, x + 40, 350], fill=(150, 110, 255), outline=(255, 255, 255), width=8)
for (x, y, r) in [(120, 90, 18), (400, 80, 24), (440, 200, 14)]:
star(d, x, y, r, (255, 255, 255))
return img
def hanok_design():
img = background((255, 225, 170), (230, 150, 90))
d = ImageDraw.Draw(img)
house(d, 110, 250, 402, 450, (248, 238, 216), (95, 60, 40), (150, 100, 60))
# 나무 기둥
for x in (110, 256, 402):
d.rectangle([x - 10, 250, x + 10, 450], fill=(95, 60, 40))
# 기와지붕(처마가 위로 휜 모양)
roof = [(40, 250), (70, 215), (140, 150), (372, 150), (442, 215), (472, 250), (420, 235), (256, 230), (92, 235)]
d.polygon(roof, fill=(60, 66, 80), outline=(30, 34, 42))
d.line([(140, 150), (372, 150)], fill=(30, 34, 42), width=14)
for i in range(9):
x = 110 + i * 37
d.line([(x, 160), (x - 8, 225)], fill=(85, 92, 108), width=6)
# 등롱
for x in (60, 452):
d.line([(x, 250), (x, 290)], fill=(40, 30, 20), width=5)
d.ellipse([x - 32, 285, x + 32, 365], fill=(225, 50, 40), outline=(120, 20, 20), width=6)
d.line([(x - 30, 325), (x + 30, 325)], fill=(255, 200, 80), width=4)
return img
def face(d, cx, cy, r, skin=(255, 220, 190)):
d.ellipse([cx - r, cy - r, cx + r, cy + r], fill=skin, outline=(90, 50, 30), width=max(4, r // 8))
d.ellipse([cx - r * 0.4 - 6, cy - r * 0.15 - 6, cx - r * 0.4 + 6, cy - r * 0.15 + 6], fill=(40, 25, 20))
d.ellipse([cx + r * 0.4 - 6, cy - r * 0.15 - 6, cx + r * 0.4 + 6, cy - r * 0.15 + 6], fill=(40, 25, 20))
d.arc([cx - r * 0.45, cy - r * 0.2, cx + r * 0.45, cy + r * 0.5], 20, 160, fill=(150, 50, 40), width=6)
def rush():
img = background((120, 230, 180), (40, 170, 130))
d = ImageDraw.Draw(img)
for i, (x, y, r, skin) in enumerate([(330, 200, 70, (255, 220, 190)), (210, 290, 64, (230, 180, 140)),
(350, 380, 58, (200, 150, 110))]):
for k in range(3):
d.line([(x - r - 30 - k * 10, y - 25 + k * 25), (x - r - 110 - k * 10, y - 25 + k * 25)],
fill=(255, 255, 255), width=12)
face(d, x, y, r, skin)
outlined(d, (120, 120), "x2", font(140), (255, 240, 80), (20, 100, 70), 12)
return img
def kick():
img = background((255, 170, 120), (235, 90, 70))
d = ImageDraw.Draw(img)
# 오른쪽 우리 가게, 왼쪽에서 손님이 화살표를 따라 옴
d.rectangle([300, 230, 470, 430], fill=(255, 245, 225), outline=(120, 60, 40), width=10)
d.polygon([(280, 240), (385, 150), (490, 240)], fill=(255, 90, 120), outline=(120, 60, 40))
d.rounded_rectangle([355, 330, 415, 430], radius=12, fill=(255, 190, 90), outline=(120, 60, 40), width=8)
arrow = [(70, 320), (210, 320), (210, 280), (280, 345), (210, 410), (210, 370), (70, 370)]
d.polygon(arrow, fill=(255, 255, 255), outline=(150, 50, 30))
face(d, 110, 200, 62)
face(d, 215, 160, 50, (230, 180, 140))
return img
def promote_ad():
img = background((255, 230, 110), (255, 160, 60))
d = ImageDraw.Draw(img)
horn = [(120, 220), (330, 110), (330, 400), (120, 290)]
d.polygon(horn, fill=(255, 90, 120), outline=(120, 30, 50))
d.rounded_rectangle([70, 205, 140, 305], radius=16, fill=(255, 255, 255), outline=(120, 30, 50), width=8)
d.line([(150, 300), (190, 400)], fill=(120, 30, 50), width=22)
for k, r in enumerate((60, 110, 160)):
d.arc([330 - r, 255 - r, 330 + r, 255 + r], -40, 40, fill=(255, 255, 255), width=14)
for (x, y, r) in [(420, 90, 22), (450, 420, 18), (80, 100, 16)]:
star(d, x, y, r, (255, 255, 255))
return img
def main():
os.makedirs(OUT, exist_ok=True)
game_icon().save(os.path.join(OUT, "game_icon.png"))
thumbnail().save(os.path.join(OUT, "thumbnail_1.png"))
print(os.path.join(OUT, "game_icon.png"), os.path.join(OUT, "thumbnail_1.png"))
for name, fn in [("double_money", double_money), ("money_boost", money_boost)]:
for name, fn in [("double_money", double_money), ("money_boost", money_boost), ("rainbow_name", rainbow_name),
("candy_design", candy_design), ("hanok_design", hanok_design), ("rush", rush),
("kick", kick), ("promote_ad", promote_ad)]:
path = os.path.join(OUT, name + ".png")
fn().save(path)
print(path)

View File

@@ -103,6 +103,24 @@ PRODUCTS = [
("developer-products", "Money Boost (돈 부스트)",
"Get 10 minutes of your current sales right now. 지금 매출 10분치를 바로 받아요.", 25, "money_boost.png",
"MONEY_BOOST_PRODUCT"),
("game-passes", "Rainbow Shop Name (무지개 가게 이름)",
"Your shop name shines in rainbow colors for everyone! 가게 이름이 무지개색으로 반짝여요!", 99,
"rainbow_name.png", "RAINBOW_NAME_PASS"),
("game-passes", "Candy Castle Design (사탕 궁전 디자인)",
"A pastel candy shop with hearts and lollipops. 하트와 막대사탕이 있는 사탕 궁전 가게 디자인", 149,
"candy_design.png", "CANDY_DESIGN_PASS"),
("game-passes", "Hanok Design (한옥 분식집 디자인)",
"A traditional Korean hanok shop with a tiled roof and lanterns. 기와지붕과 등롱이 있는 한옥 가게 디자인", 149,
"hanok_design.png", "HANOK_DESIGN_PASS"),
("developer-products", "Customer Rush (손님 러시)",
"Customers come twice as fast for 10 minutes. 10분 동안 손님이 2배 빨리 와요.", 15, "rush.png",
"RUSH_PRODUCT"),
("developer-products", "Bring Customers (옆 가게 손님 데려오기)",
"Customers waiting at a neighbor shop come to your shop. 옆 가게에서 기다리던 손님이 우리 가게로 와요.", 15,
"kick.png", "KICK_PRODUCT"),
("developer-products", "Promotion Ad Reward (홍보 광고 보상)",
"Reward for watching an ad: neighbor customers visit your shop. 광고를 보면 옆 가게 손님이 와요.", 5,
"promote_ad.png", "PROMOTE_AD_PRODUCT"),
]