Grass Cutters Together: the project as of moon-sweepers f3666f0

A clean start for the shared repository: the Unity project (Assets, Packages, ProjectSettings), ArtSource, Docs and
Tools as they stood at f3666f0 in the old local repository, with its generated prefabs and scene brought up to date.
Images, audio, models and binaries go through Git LFS (.gitattributes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-11-06 18:44:40 +06:00
parent 0f0467cd0c
commit d1c3761e58
4190 changed files with 270757 additions and 1 deletions

BIN
Tools/ui/contact.png (Stored with Git LFS) Normal file

Binary file not shown.

26
Tools/ui/gen_all.sh Normal file
View File

@ -0,0 +1,26 @@
#!/usr/bin/env bash
G=~/.claude/skills/gpt-image/generate.sh
S="chunky glossy 3D cartoon game icon, bright saturated colours, thick dark navy outline, soft studio lighting, centered single object, transparent background, no text"
OUT="$(cd "$(dirname "$0")" && pwd)/raw"
gen() { name="$1"; shift; SZ=1024x1024; case "$name" in logo_wrapparty|menu_bg) SZ=1536x1024;; esac; "$G" --out "$OUT/$name.png" --size "$SZ" --prompt "$*" > "$OUT/$name.log" 2>&1; echo "$name exit $?" >> "$OUT/status.txt"; }
gen logo_wrapparty "Game logo reading exactly \"WRAP PARTY\" in fat bubbly rounded 3D cartoon letters, two lines or one line, yellow to orange gradient letters with glossy highlights, thick dark navy outline and navy drop shadow, letters have a subtle bubble-wrap texture of small round bumps, a few glossy transparent soap-like bubbles floating around the letters, playful tilted composition, transparent background, no other text" &
gen icon_coin "$S. A shiny gold coin with a raised round bubble emblem in the middle, slightly tilted" &
gen icon_tool_finger "$S. A cartoon white glove hand pointing with the index finger, poking forward" &
gen icon_tool_rollingpin "$S. A wooden kitchen rolling pin with red handles, diagonal" &
gen icon_tool_mallet "$S. A rubber mallet with a big red rubber head and wooden handle, diagonal" &
sleep 5
gen icon_tool_boots "$S. A pair of chunky yellow cartoon work boots with thick rubber studded soles" &
gen icon_tool_spikeroller "$S. A wide paint-roller style tool whose orange drum is covered with rubber spikes, blue handle" &
gen icon_tool_roadroller "$S. A cute compact yellow road roller construction vehicle with a big front steel drum, three-quarter view" &
gen icon_up_popvalue "$S. A sheet of glossy bubble wrap with a big green upward arrow" &
gen icon_up_combo "$S. A glowing orange flame with a lightning bolt" &
wait
gen icon_up_golden "$S. A shiny golden glowing bubble-wrap bubble with sparkles" &
gen icon_up_delivery "$S. A brown cardboard delivery box with tape and a small blue motion trail" &
gen icon_up_cutter "$S. A yellow box cutter utility knife with a shiny blade" &
gen icon_up_speed "$S. A blue running sneaker with white motion lines" &
gen icon_star "$S. A plump glossy golden star" &
wait
gen menu_bg "Bright cheerful cartoon illustration of a sunny warehouse interior full of brown cardboard boxes and huge piles of shiny bubble wrap, conveyor belt, big windows with blue sky, soft light, saturated colours, stylized 3D render look, no characters, no text, wide composition" &
wait
echo ALLDONE >> "$OUT/status.txt"

100
Tools/ui/process.py Normal file
View File

@ -0,0 +1,100 @@
"""Post-process raw gpt-image UI art into Assets/Art/UI.
- ensures real alpha (removes flat background from corners if needed)
- trims transparent margins, pads to square for icons, resizes
- writes a contact sheet to Tools/ui/contact.png for review
"""
import glob
import os
import sys
from PIL import Image, ImageChops, ImageDraw, ImageFilter
HERE = os.path.dirname(os.path.abspath(__file__))
RAW = os.path.join(HERE, "raw")
DST = os.path.join(os.path.dirname(os.path.dirname(HERE)), "Assets", "Art", "UI")
def remove_bg(im, tol=38):
"""Flood-fill background from the four corners into transparency."""
im = im.convert("RGBA")
w, h = im.size
mask = Image.new("L", (w, h), 0)
rgb = im.convert("RGB")
for corner in [(0, 0), (w - 1, 0), (0, h - 1), (w - 1, h - 1)]:
tmp = rgb.copy()
ImageDraw.floodfill(tmp, corner, (255, 0, 255), thresh=tol)
diff = ImageChops.difference(tmp, rgb).convert("L").point(lambda v: 255 if v > 0 else 0)
mask = ImageChops.lighter(mask, diff)
alpha = ImageChops.invert(mask).filter(ImageFilter.MinFilter(3)).filter(ImageFilter.GaussianBlur(1.2))
im.putalpha(ImageChops.multiply(alpha, im.getchannel("A")))
return im
def has_alpha(im):
return im.mode == "RGBA" and im.getchannel("A").getextrema()[0] < 10
def trim(im, pad_frac=0.04, square=True):
bbox = im.getchannel("A").point(lambda v: 255 if v > 8 else 0).getbbox()
if bbox:
im = im.crop(bbox)
w, h = im.size
side = max(w, h) if square else None
pad = int(max(w, h) * pad_frac)
if square:
canvas = Image.new("RGBA", (side + 2 * pad, side + 2 * pad), (0, 0, 0, 0))
canvas.paste(im, ((side - w) // 2 + pad, (side - h) // 2 + pad))
else:
canvas = Image.new("RGBA", (w + 2 * pad, h + 2 * pad), (0, 0, 0, 0))
canvas.paste(im, (pad, pad))
return canvas
def process(name):
src = os.path.join(RAW, name + ".png")
im = Image.open(src)
if name == "menu_bg":
im = im.convert("RGB")
im.save(os.path.join(DST, name + ".png"), optimize=True)
return im.convert("RGBA")
if not has_alpha(im):
im = remove_bg(im)
if name.startswith("logo"):
im = trim(im, 0.02, square=False)
if im.width > 1600:
im = im.resize((1600, round(im.height * 1600 / im.width)), Image.LANCZOS)
else:
im = trim(im, 0.04).resize((256, 256), Image.LANCZOS)
im.save(os.path.join(DST, name + ".png"), optimize=True)
return im
def contact(images, out):
cell = 200
cols = 6
rows = (len(images) + cols - 1) // cols
sheet = Image.new("RGBA", (cols * cell, rows * (cell + 20)), (255, 255, 255, 255))
checker = Image.new("RGBA", (cell, cell))
d = ImageDraw.Draw(checker)
for y in range(0, cell, 16):
for x in range(0, cell, 16):
d.rectangle([x, y, x + 15, y + 15], fill=(200, 200, 200, 255) if (x + y) // 16 % 2 else (240, 240, 240, 255))
dd = ImageDraw.Draw(sheet)
for i, (n, im) in enumerate(images):
x, y = (i % cols) * cell, (i // cols) * (cell + 20)
th = im.copy()
th.thumbnail((cell, cell))
bg = checker.copy()
bg.alpha_composite(th, ((cell - th.width) // 2, (cell - th.height) // 2))
sheet.paste(bg, (x, y))
dd.text((x + 4, y + cell + 3), n, fill=(0, 0, 0, 255))
sheet.save(out)
if __name__ == "__main__":
os.makedirs(DST, exist_ok=True)
names = sys.argv[1:] or sorted(os.path.splitext(os.path.basename(p))[0] for p in glob.glob(os.path.join(RAW, "*.png")))
done = [(n, process(n)) for n in names]
contact(done, os.path.join(HERE, "contact.png"))
print("processed", len(done))

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_coin.png

BIN
Tools/ui/raw/icon_coin.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_star.png

BIN
Tools/ui/raw/icon_star.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_tool_boots.png

BIN
Tools/ui/raw/icon_tool_boots.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_tool_finger.png

BIN
Tools/ui/raw/icon_tool_finger.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_tool_mallet.png

BIN
Tools/ui/raw/icon_tool_mallet.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_tool_roadroller.png

BIN
Tools/ui/raw/icon_tool_roadroller.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_tool_rollingpin.png

BIN
Tools/ui/raw/icon_tool_rollingpin.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_tool_spikeroller.png

BIN
Tools/ui/raw/icon_tool_spikeroller.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_up_combo.png

BIN
Tools/ui/raw/icon_up_combo.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_up_cutter.png

BIN
Tools/ui/raw/icon_up_cutter.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_up_delivery.png

BIN
Tools/ui/raw/icon_up_delivery.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_up_golden.png

BIN
Tools/ui/raw/icon_up_golden.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_up_popvalue.png

BIN
Tools/ui/raw/icon_up_popvalue.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/icon_up_speed.png

BIN
Tools/ui/raw/icon_up_speed.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/logo_wrapparty.png

BIN
Tools/ui/raw/logo_wrapparty.png (Stored with Git LFS) Normal file

Binary file not shown.

1
Tools/ui/raw/menu_bg.log Normal file
View File

@ -0,0 +1 @@
/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw/menu_bg.png

BIN
Tools/ui/raw/menu_bg.png (Stored with Git LFS) Normal file

Binary file not shown.

27
Tools/ui/raw/status.txt Normal file
View File

@ -0,0 +1,27 @@
icon_tool_mallet exit 6
logo_wrapparty exit 6
icon_tool_rollingpin exit 6
icon_coin exit 6
icon_up_combo exit 6
icon_tool_boots exit 6
icon_up_popvalue exit 6
icon_tool_roadroller exit 6
icon_tool_spikeroller exit 6
icon_tool_finger exit 0
icon_up_cutter exit 0
icon_up_delivery exit 0
icon_up_speed exit 0
icon_star exit 0
icon_up_golden exit 0
menu_bg exit 0
ALLDONE
logo_wrapparty exit 0
icon_coin exit 0
icon_tool_rollingpin exit 0
icon_tool_mallet exit 0
icon_tool_boots exit 0
icon_tool_spikeroller exit 0
icon_tool_roadroller exit 0
icon_up_popvalue exit 0
icon_up_combo exit 0
RETRYDONE

23
Tools/ui/retry.sh Normal file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env bash
G=~/.claude/skills/gpt-image/generate.sh
S="chunky glossy 3D cartoon game icon, bright saturated colours, thick dark navy outline, soft studio lighting, centered single object, transparent background, no text"
OUT=/d/PROJECTS/LOCAL/ProjectPop/Tools/ui/raw
gen() { name="$1"; shift; SZ=1024x1024; case "$name" in logo_wrapparty|menu_bg) SZ=1536x1024;; esac; "$G" --out "$OUT/$name.png" --size "$SZ" --prompt "$*" > "$OUT/$name.log" 2>&1; echo "$name exit $?" >> "$OUT/status.txt"; }
DONE() { [ -f "$OUT/$1.png" ]; }
DONE logo_wrapparty || { gen logo_wrapparty "Game logo reading exactly \"WRAP PARTY\" in fat bubbly rounded 3D cartoon letters, two lines or one line, yellow to orange gradient letters with glossy highlights, thick dark navy outline and navy drop shadow, letters have a subtle bubble-wrap texture of small round bumps, a few glossy transparent soap-like bubbles floating around the letters, playful tilted composition, transparent background, no other text"; sleep 3; }
DONE icon_coin || { gen icon_coin "$S. A shiny gold coin with a raised round bubble emblem in the middle, slightly tilted"; sleep 3; }
DONE icon_tool_finger || { gen icon_tool_finger "$S. A cartoon white glove hand pointing with the index finger, poking forward"; sleep 3; }
DONE icon_tool_rollingpin || { gen icon_tool_rollingpin "$S. A wooden kitchen rolling pin with red handles, diagonal"; sleep 3; }
DONE icon_tool_mallet || { gen icon_tool_mallet "$S. A rubber mallet with a big red rubber head and wooden handle, diagonal"; sleep 3; }
DONE icon_tool_boots || { gen icon_tool_boots "$S. A pair of chunky yellow cartoon work boots with thick rubber studded soles"; sleep 3; }
DONE icon_tool_spikeroller || { gen icon_tool_spikeroller "$S. A wide paint-roller style tool whose orange drum is covered with rubber spikes, blue handle"; sleep 3; }
DONE icon_tool_roadroller || { gen icon_tool_roadroller "$S. A cute compact yellow road roller construction vehicle with a big front steel drum, three-quarter view"; sleep 3; }
DONE icon_up_popvalue || { gen icon_up_popvalue "$S. A sheet of glossy bubble wrap with a big green upward arrow"; sleep 3; }
DONE icon_up_combo || { gen icon_up_combo "$S. A glowing orange flame with a lightning bolt"; sleep 3; }
DONE icon_up_golden || { gen icon_up_golden "$S. A shiny golden glowing bubble-wrap bubble with sparkles"; sleep 3; }
DONE icon_up_delivery || { gen icon_up_delivery "$S. A brown cardboard delivery box with tape and a small blue motion trail"; sleep 3; }
DONE icon_up_cutter || { gen icon_up_cutter "$S. A yellow box cutter utility knife with a shiny blade"; sleep 3; }
DONE icon_up_speed || { gen icon_up_speed "$S. A blue running sneaker with white motion lines"; sleep 3; }
DONE icon_star || { gen icon_star "$S. A plump glossy golden star"; sleep 3; }
DONE menu_bg || { gen menu_bg "Bright cheerful cartoon illustration of a sunny warehouse interior full of brown cardboard boxes and huge piles of shiny bubble wrap, conveyor belt, big windows with blue sky, soft light, saturated colours, stylized 3D render look, no characters, no text, wide composition"; sleep 3; }
echo RETRYDONE >> "$OUT/status.txt"