How iampaullo/gazeusbejeweled works
Main Components
• Unity Engine & Core Modules – The underlying Unity engine provides the runtime and scene management.
• Scenes – Your project has multiple scenes such as MainMenu, Level1, Level2, and TimedMode. Each scene represents a state or stage of the game.
• Assets – This central folder is subdivided into:
• Art – Contains animations (e.g., Fade, Gems), menus, FX, and sprite sheets.
• Prefabs – Pre-configured GameObjects, including canvases and in-game elements such as InGame Managers (SceneManager, ScoreManager, SoundManager) and game items (gems, placeholders).
• Scripts – Contains all the C# scripts controlling game logic (e.g., Board.cs, GemManager.cs, MatchHandler.cs, TimerHandler.cs, etc.). These scripts encapsulate the game’s rules, interactions, and behaviors.
• Sounds – Audio files (.mp3, .wav) for background music and sound effects.
• TextMesh Pro – Provided as a typical Unity package for advanced text rendering.
• Project Settings & Packages – These directories store configuration, project versioning, and package dependencies. They are important for understanding deployment and integration with Unity's services.
Architectural Patterns and Interactions
• Component-Based Architecture – The game relies on Unity’s paradigm where behavior is attached to GameObjects through components (scripts, animations, controllers). For instance, each prefab (like a gem or background music manager) encapsulates functionality that is linked via scripts.
• Scene Management – The Scenes folder and the SceneManager prefab/script indicate a clear division between game states (e.g., main menu vs. gameplay).
• Manager Classes – Managers for score, sound, and board (e.g., ScoreManager.cs, SoundManager.cs, and Board.cs) suggest a centralized design to handle respective game logic, making the architecture modular.
• Asset Pipeline – The distinct folders for Art, Sounds, and Prefabs illustrate how assets are organized and later referenced by scripts during runtime.
• Animation & UI Flow – The Art folder’s structure (with Anim and Menus) shows dedicated components for handling transitions and animations which are likely tied to UI prefabs and controllers.