- billing module with a testable seam: models (product ids, purchase events), StoreClient + PlayStoreClient over in_app_purchase, Entitlements persisted in SharedPreferences, BillingService orchestrating query/buy/restore/grant. - rules encoded: grant before completePurchase (Play refunds unacknowledged purchases after three days), pending purchases are shown but never granted, restorePurchases on start so a reinstall keeps the purchase, and Remove Ads only hides interstitials - rewarded video stays available. - ads gate: AdsService.adsRemoved stops both the counter and the preload, so an owner never requests an interstitial. - settings sheet: shop section (price from the store, never hardcoded), "restore purchases", and "delete local data" with confirmation; the existing mail-based deletion request stays the account-deletion path since the app has no accounts. - 9 new tests with a fake store cover purchase, restore, pending, cancel, error, restart persistence, missing store and a store that throws. 17 total. - verified on device: the app talks to the real Play Billing service (IInAppBillingService in logcat) and degrades to "no products created" without a crash; com.android.vending.BILLING is in the merged manifest. - docs: monetization 7c (rules + verification), decision D6 (local entitlement until purchases affect the server), compliance rows for billing/restore/ deletion, blocked.md 3c (create remove_ads in the Console). - release 0.9.0 (13).
IRON ARC (Arbeitstitel)
Modernes, rundenbasiertes Artillery-Duell für Android: 2D, zerstörbare Landschaft, Wind und Schwerkraft, absurd großes Waffenarsenal — inspiriert von Scorched Earth (1991), aber mobile-first mit Deck-Building, asynchronem PvP und Live-Service-Struktur.
Monetarisierung: Freemium + Werbung, ohne Pay-to-Win (Power ist nicht kaufbar).
Rechtlicher Hinweis: „Scorched Earth" ist eine geschützte Marke (Wendell Hicken). Dieses Projekt nutzt einen eigenen Namen, eigene Marke und eigene Assets. Es werden keine Assets, kein Branding und kein Code des Originals verwendet.
Status
Pre-M0 — ausschließlich Dokumentation. Es existiert noch kein Produktivcode. Nächster Schritt: M0 (Skeleton) — siehe docs/roadmap.md.
Stack (beschlossen: R1 + R3)
| Baustein | Technologie | Rolle |
|---|---|---|
| Simulation | Rust, no_std + alloc, Fixed-Point |
Einzige Quelle der Wahrheit: Terrain, Ballistik, Waffen, Schaden, RNG, Replay |
| Client | Flutter 3.47 + Flame | Rendering, Drag-Aim-HUD, Menüs, später Ads/IAP |
| Bridge | flutter_rust_bridge 2.13 | FFI-Grenze Client ↔ Sim (1 Snapshot pro Frame) |
| Server | Rust axum + sqlx/SQLite |
Replay-Validierung (Schiedsrichter), Auth, Leaderboard |
| Monetarisierung | AdMob + UMP, Play Billing, Firebase | Ab M7, nicht MVP-relevant |
| Store | targetSdk 36 (Pflicht ab 31.08.2026), minSdk 24 |
Google-Play-konform |
| Toolchain | rustc 1.85.0, JDK 21, Android SDK 36, NDK 28.2 | Bewusst gepinnt |
Architekturbegründung: docs/ADR/0001-tech-stack-r1-r3.md
Repo-Map (Zielzustand)
crates/sim/ deterministischer Spielkern (no_std, fixed-point) [M1]
crates/content/ serde-Modelle + JSON-Validierung [M2]
crates/ffi/ cdylib, flutter_rust_bridge-API [M3]
crates/server/ axum-Replay-Validator [M4]
tools/balance/ Headless-CLI: 100k KI-Matches, CSV-Report [M2]
tools/device/ connect/install/smoke/perf/logs-Skripte [M3]
app/ Flutter-Projekt [M3]
docs/ GDD, ADRs, Protokoll, Roadmap, Compliance [erledigt]
Doku-Index
| Dokument | Inhalt |
|---|---|
| docs/GDD.md | Game Design: Vision, Loops, Panzer, Waffen, Modi, Scope |
| docs/ADR/0001-tech-stack-r1-r3.md | Architekturentscheidung + verworfene Alternativen |
| docs/ADR/0002-determinismus-fixed-point.md | Determinismus-Regeln, Q16.16, RNG, Hash-Kette |
| docs/protocol.md | Replay-Format v1, Commands, Server-API, Versionierung |
| docs/monetization.md | Ads-Platzierungen, IAP-Katalog, Economy, KPI-Ziele |
| docs/roadmap.md | M0–M6 mit prüfbaren Gates |
| docs/testing.md | Testpyramide, Determinismus-/Golden-/Device-Tests |
| docs/compliance-play-store.md | Store-Checkliste (targetSdk, Data Safety, UMP, Familien) |
| docs/decisions.md | Entscheidungslog des Auftraggebers (HP 150, kein Closed-Test) |
| docs/privacy-policy.md | Datenschutzerklärung (DE/EN) + was vor Veröffentlichung einzusetzen ist |
| docs/signing.md | Upload-Keystore, signierter AAB-Build, Backup-Regeln |
Konventionen
- Dokumentation: Deutsch. Code, Identifier, Commit-Typen, Logs: Englisch.
- Commits: Conventional Commits (
feat:,fix:,docs:,chore:,test:,refactor:). - Branch
main; Feature-Branchesfeat/<kurz>, Dokudocs/<kurz>. - In
crates/simist Fließkomma-Arithmetik verboten (siehe ADR 0002). - Jede Balance-Änderung muss Golden-Replays aktualisieren (
cargo run -p balance --bin regen). - Keine Secrets im Repo:
google-services.jsonundkey.propertiessind ignoriert und werden dokumentiert bereitgestellt.
Quickstart (ab M0)
export PATH="$HOME/Android/Sdk/platform-tools:$PATH"
export ANDROID_NDK_HOME="$HOME/Android/Sdk/ndk/28.2.13676358"
flutter config --jdk-dir=/usr/lib/jvm/java-21-openjdk-amd64 # JDK 25 meiden
cargo test -p sim
cargo run -p balance -- --matches 100000 --out report.csv
flutter build apk --debug
Nicht-Ziele (MVP)
Kein 3D, kein Echtzeit-Multiplayer, kein Cross-Play mit anderen Plattformen, kein iOS, kein Level-Editor, kein nutzergenerierter Content, keine Lootboxen mit Gameplay-Power.
Offene Entscheidungen
| Thema | Optionen | Blockiert |
|---|---|---|
| Lizenz | proprietär (aktuell) / MIT / dual | LICENSE-Datei, OSS-Veröffentlichung |
| Finaler Markenname | IRON ARC (Arbeitstitel) / ASHFALL / DUST & STEEL | Store-Listing, Domain, Icon |
| Art-Pipeline | Vektor (SVG→PNG-Atlas) / Raster-Atlas / Shader-prozedural | M3-Renderer |
| Asset-Versionierung | git-lfs vs. plain (Assets klein halten) | sobald Assets > 5 MB |
| Ads bereits in MVP-1 | ja (Test-IDs) / nein (erst M7) | UMP-Consent-Skeleton |