# Tycoon Street - rebuild / export guide

Godot 4 project (made with Godot 4.7.2-stable, works with any 4.4+). 2D idle
tycoon: the street is the game. Economy code (game_data.gd) is unchanged from
Omar's original idle_tycoon project.

## Contents
- project.godot          project config (portrait 720x1280, gl_compatibility)
- main.tscn              street scene (Node2D + background sprite + popup layer)
- scripts/game_data.gd   economy autoload "Game" (money, managers, upgrades,
                         milestones, prestige, offline earnings, save/load)
- scripts/street.gd      scene, shops placement, customers, HUD, panels, input
- scripts/shop.gd        one stall / FOR SALE sign (drawn in code)
- scripts/walker.gd      code-drawn character (workers, customers)
- assets/street_bg.jpg   Omar's city street art (720x1280)
- export_presets.cfg     Web + Android presets

## Rebuild the web export (no account, no license needed)
1. Download Godot 4.7.2 Linux editor + export templates from
   github.com/godotengine/godot/releases (free).
2. Unpack templates to ~/.local/share/godot/export_templates/4.7.2.stable/
3. godot --headless --path . --import
4. godot --headless --path . --export-release "Web" build/web/index.html

## Deploy note (Cloudflare Pages 25 MiB file limit)
index.wasm is ~39.5 MB. The live site renames the engine files to game-vN.*,
gzips the wasm, and a Pages Function (functions/[[path]].js) decompresses it
on the fly. If you change the engine build, bump the file prefix (v2 -> v3)
so browsers do not reuse the cached old wasm, and update "executable" and
"fileSizes" in index.html accordingly.

## Android debug APK (free, no root)
Needs JDK 17 + Android SDK (cmdline-tools, platform-34, build-tools 34) and a
debug keystore; SDK paths go in ~/.config/godot/editor_settings-4.7.tres.
Then: godot --headless --path . --export-debug "Android" build/android/tycoon-street.apk

Save data: user://idle_save.json (IndexedDB on web).
