e22fcadb22
Replace the single shared face.png placeholder with 52 individual card face images (120×168 px each), generated by the updated gen_art tool: - solitaire_assetgen: add ab_glyph dep; rewrite gen_art to render each card with FiraMono rank characters, programmatic suit symbols (heart, spade, diamond, club drawn via circles/triangles), and standard pip layout for numbered cards (A–10) plus large face letter for J/Q/K. - CardImageSet: replace single `face` handle with `faces: [[Handle; 13]; 4]` indexed by [suit][rank]. - card_sprite(): select the per-card face image by suit/rank indices. - spawn/update_card_entity: suppress Text2d overlay when PNG faces are loaded (rank/suit baked into image); keep overlay in solid-colour fallback for tests. - gen_sfx.rs: rename `gen` variable to `make` (reserved keyword in 2024). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
23 lines
492 B
TOML
23 lines
492 B
TOML
[package]
|
|
name = "solitaire_assetgen"
|
|
version.workspace = true
|
|
license.workspace = true
|
|
edition.workspace = true
|
|
publish = false
|
|
|
|
# Dev-only utility: synthesizes placeholder SFX WAV files into `assets/audio/`
|
|
# and placeholder PNG images into `assets/cards/` and `assets/backgrounds/`.
|
|
# Not depended on by any other workspace crate.
|
|
|
|
[dependencies]
|
|
png = "0.17"
|
|
ab_glyph = "0.2"
|
|
|
|
[[bin]]
|
|
name = "gen_sfx"
|
|
path = "src/bin/gen_sfx.rs"
|
|
|
|
[[bin]]
|
|
name = "gen_art"
|
|
path = "src/bin/gen_art.rs"
|