Ship a complete themed sliding puzzle game — menus, scoring, theming, and orientation support included. You focus on the art; the framework handles the rest.Requires TextMeshPro Essentials for Sample scenes to work properlySliding Puzzle Factory ships with two fully playable example games — a coral reef theme and a cyberpunk theme — so you can see exactly what you're building before you write a single line of code. Both are included as importable samples, with every scene, script, and animation available to study and adapt.Underneath the examples is a production-ready framework that handles the full game lifecycle: main menu flow, difficulty selection, session management, score persistence, theme propagation, and portrait/landscape orientation switching. The puzzle board itself (SlidingPuzzleKit) is bundled — no separate install required.The workflow is straightforward: create one config asset with your levels, difficulty tiers, colors, and background art, then subclass the provided base classes to plug in your own transitions and animations. The framework takes care of the rest.What the package handles for you:Complete main menu flow: title screen → hub → level list → level detail → game → completion overlayDifficulty tiers with configurable grid sizes and shuffle behaviourPer-level best-score persistence (best move count and best time tracked independently)Theme propagation: brand colors and background sprite pushed to all UI in one callPortrait/landscape orientation switching with per-branch UI visibilityTimer with enable/disable toggle, hint overlay toggle, and mid-game quit confirmationLimitations to be aware of:The package provides the architecture and wiring; you supply all art, prefabs, and animations. There are no ready-to-ship visual assets — the sample games' art is for reference only.The base classes require subclassing — they cannot be dropped into a scene without code. The included sample scenes and step-by-step documentation walk you through the process.Score storage uses PlayerPrefs. If your game requires cloud saves or a custom persistence backend, you will need to replace the score layer.Sample scenes use images from Pixabay under the Pixabay Content License; see Third-Party Notices.txt in the package for details.Core frameworkGameConfigSO ScriptableObject — single asset holds all game data: levels, difficulty tiers, theme colors, and background artGameManager — persistent singleton that survives scene loads and provides global access to config and session stateScoreRepository — PlayerPrefs-backed persistence; tracks best move count and best time independently per level/difficultyMenu system (Shared sample)Abstract base classes for every screen in the flow: title, hub, level list, level detail, game scene, completion overlay, quit confirmation, and difficulty picker — subclass each to add your own transitions and animationsDrop-in UI widgets for move count, timer, timer toggle, hint toggle, themed buttons, background, level cards, and best-score display — add to your scene and wire in the Inspector, no code requiredTheme systemThemeApplicator propagates colors and background art to all subscribed UI in a single callMenuButtonUI and MenuBackgroundUI apply theme automatically; extend to your own components with one line of codeEditor preview: see colors in the Scene view without entering Play ModeOrientation supportDetects portrait/landscape changes and notifies subscribers automaticallyAttach OrientationVisibility to UI branches to show/hide them on rotation; no code requiredBundled SlidingPuzzleKitPuzzle board, tile layout, shuffle/mix logic, and hint overlay includedEvents for every meaningful game moment: piece moved, puzzle solved, mix completed, hint shown/hiddenDeveloper experienceFull XML documentation on every public and protected memberTooltips on every Inspector-exposed fieldStartup validation catches misconfigured assets early with a clear, descriptive error messageFour manual pages included: overview, configuration reference, subclassing guide, and step-by-step first-game walkthroughExample games (importable samples)ReefGame — ocean theme with drop-in animationsCyberpunk — neon-flash animations and slide transitionsBoth are fully playable end-to-end and demonstrate every base class in useRequirementsUnity 6000.3 or laterAny render pipeline (the framework is pipeline-agnostic; sample game materials are authored in URP and may need upgrading if you use a different pipeline)TextMeshProInput SystemPackage code, documentation, and sample images were developed with assistance from Claude (Anthropic) and ChatGPT (Open AI).


