|
|
hace 1 semana | |
|---|---|---|
| .. | ||
| Art | hace 1 semana | |
| Core | hace 1 semana | |
| Editor | hace 1 semana | |
| Imported | hace 1 semana | |
| Plugins | hace 1 semana | |
| Prefabs | hace 1 semana | |
| Resources | hace 1 semana | |
| Runtime | hace 1 semana | |
| Scenes | hace 1 semana | |
| Tests | hace 1 semana | |
| Theme | hace 1 semana | |
| Art.meta | hace 1 semana | |
| Core.meta | hace 1 semana | |
| Editor.meta | hace 1 semana | |
| Imported.meta | hace 1 semana | |
| Plugins.meta | hace 1 semana | |
| Prefabs.meta | hace 1 semana | |
| README.md | hace 1 semana | |
| README.md.meta | hace 1 semana | |
| Resources.meta | hace 1 semana | |
| Runtime.meta | hace 1 semana | |
| Scenes.meta | hace 1 semana | |
| Tests.meta | hace 1 semana | |
| Theme.meta | hace 1 semana | |
| iOS AdMob Test.asset | hace 1 semana | |
| iOS AdMob Test.asset.meta | hace 1 semana | |
Open Assets/Fateforge/Scenes/FateforgeMain.unity in Unity 6000.3.26f1 and press Play. The Editor uses local saves and simulated services. iOS device builds use Game Center and Google AdMob rewarded videos.
The scene contains an authored Canvas hierarchy: background, safe-area root, Home, header, five magnet slots, cabinet, reels, market container, preview, action dock, equipment, dialog, and tooltip layers. The Canvas Scaler uses 750×1334, width matching (matchWidthOrHeight = 0). Interactive content follows Screen.safeArea; portrait orientation is configured in Player Settings.
Prefabs/Card.prefab, MarketOffer.prefab, ActionButton.prefab, and GuideEntry.prefab are reusable editable components. Variable card and item instances use these Prefabs. Theme/PortraitTheme.asset controls fonts, colors, rounded panels, and reel blur. Theme/ArtLibrary.asset references existing artwork and audio without a runtime dependency on the original Godot or HTML folders.
The current physical casino skin uses Art/PhysicalCasino/: the curtain stage, separate artistic wordmark, blank brass/enamel cabinet, nine control sprites, and four equipment sprites. PhysicalCabinet, MainMenu, and DialogShell are editable Prefabs. Cards continue to use the original HTML symbol sprites through ArtLibrary; only their surrounding tiles changed. Labels remain editable TMP text. Native UiGlyph and MatchConnections components require RectTransform and CanvasRenderer. Crimson Text regular, semibold and italic fonts are included under the SIL Open Font License in Art/Fonts/OFL.txt.
Fateforge/Build Portrait Scene is a reconstruction command. It regenerates this scene and the generated UI Prefabs; use it intentionally because it replaces manual layout changes to those assets. Normal Play Mode and ordinary imports do not rebuild the scene.
The rules in Core/ and presentation in Runtime/ compile into Fateforge. Editor tools use Unity’s predefined editor assembly. Game accepts commands; the presentation reads results and snapshots. Settlement, rewards, purchases, and unlocks commit before animation. Board and campaign random states are saved independently. Animation uses time and indices, never gameplay randomness.
The current HTML playable pool is retained: 6 tricks, 4 tickets, 8 magnets, 3 stickers, symbol purchases, elixirs, and elixir packs. Help independently includes all 15 reference tricks and 46 reference tickets. Reference entries do not expand the shop pool.
English item text is in Resources/Fateforge/content.json. General UI copy is centralized in Resources/Fateforge/ui-en.json, with generated Runtime/EnglishCopy.cs constants. Original content IDs, filenames, and GUIDs are preserved. The application has no language switch.
Progress is stored under Application.persistentDataPath/Fateforge/. The versioned envelope includes the run ID, revision, stage, both random states, board, stock, card growth and stickers, equipment, pending purchases and candidates, market offers, and independent slot unlock flags. Settings use a separate file. Checkpoints use atomic replacement, checksums, a backup, and an ended-run journal. Prepared loadouts and committed settlements can be continued. Browser and landscape records are not migrated.
ILocalSaveStore, ICloudSaveService, and IRewardedAdService are replaceable boundaries. SaveCoordinator chooses whole cloud records and applies restoration from Home. Local play works offline and signed out. RewardedSlotCoordinator validates request and run identity and grants only from a rewarded callback. The rewarded slot unlocks independently of the 10-coin slot, generates a normally priced offer, persists for the run, and resets on New Game.
In the Unity Editor during Play Mode, open Fateforge → Service Simulation. The visual Settings page contains only music, sound, animation speed, and navigation. Controls cover availability, sign-in, offline mode, upload failure, conflicting device progress, duplicate callbacks, and callbacks delayed by five seconds. The market's Watch Ad opens Ad Simulation, offering completion, closure without reward, error, and no-fill outcomes. Cloud synchronization is available from Home; conflicts offer Use This Device and Use Cloud Save.
Choose Endless Mode on Home to start at level 1 with a fresh deck and zero score. Alternatively, after the normal campaign’s level 12 upgrades, choose Continue Endless or End Run. Continuing carries the full run score and inventory into level 13. Each six-level floor draws two bosses from a saved eight-boss bag. The endless Game Over screen shows the run score and personal best. The separate Leaderboard button on Home opens the global all-time Game Center leaderboard on iOS.
An exhausted run automatically uses an available Free Spin ticket. After that, an endless run can earn one extra Collect from a completed rewarded video. An unavailable or interrupted video returns to the choice. End Run commits defeat. The market offer slot has its own reward. Both the level 12 decision and the revive decision survive restarting the app.
Assets/Fateforge/Resources/Fateforge/mobile-services.json as leaderboardId.adMobIosRewardedAdUnitId. The iOS export writes the AdMob app ID to GADApplicationIdentifier in Info.plist. Google UMP checks consent before ad requests. Settings offers Ad Privacy Options when required.Unity-iPhone.xcodeproj. Xcode resolves Google Mobile Ads through Package Dependencies. Select the provisioning profile with Game Center enabled and run on the iPhone.[Fateforge Ads] to see the selected unit and the load result. Watch a video in each reward opportunity, then skip one in a fresh run to verify retry behavior.Run these from the Unity project root:
python -X utf8 Tools/Fateforge/import_html_reference.py
python -X utf8 Tools/Fateforge/centralize_copy.py
node Tools/Fateforge/generate_reference.cjs
python -X utf8 Tools/Fateforge/audit_delivery.py
The importer reuses original resources and records mappings and transparent bounds. The reference generator reads the approved local HTML, generates deterministic fixtures, and executes its 104 checks without writing to reference files. Its reference path can be passed as the first argument.
Run the Fateforge.Tests namespace in EditMode (Game.EditModeTests) and PlayMode (Game.PlayModeTests) in the Unity Test Runner or through Unity MCP. Play Mode tests use a separate Validation save profile. The full-route test uses a controlled score fixture to exercise all 12 levels; it does not claim an unassisted balance playthrough.
Fateforge.Editor.PortraitVerification provides Editor-only screen fixtures and rejects normal save profiles. Enable useValidationProfile before entering Play Mode for fixtures. Fateforge.Editor.FateforgeBuilder.Resolution(width, height) configures Game View. SafeAreaLayout.simulateInsets is an Editor inspection aid; leave it disabled for normal play. Capture overlay UI with ScreenCapture.CaptureScreenshot through Unity MCP. Test records, screenshots, source hashes, and the audit report are in Validation/Fateforge/; the latest physical casino implementation and screenshots are in Validation/Fateforge/PhysicalUI/TEST_RECORD.md and Review.html. The older skin repair is retained in Validation/Fateforge/UIRefresh/TEST_RECORD.md.
Assets/Fateforge/Scenes/FateforgeMain.unity is the build entry point. The shared sprites, audio, and source fonts are under Assets/Fateforge/Resources/Fateforge. The HTML importer reads its source catalog from Assets/Fateforge/Editor/Reference/catalog.json.