Merge2D Framework is an extensible code architecture for implementing drop-and-merge gameplay mechanics in Unity. It provides the technical scaffolding — not a finished game.
What's inside:
Interface-driven architecture (IGameService, IMergeable, IInputProvider, IScoreCalculator) lets you plug in your own art, rules, and scoring without touching core logic.
A ScriptableObject data pipeline (MergeObjectDefinition, MergeTable) keeps all game content fully data-driven.
Generic object pooling eliminates runtime GC spikes.
Cross-platform input via conditional compilation (Legacy & New Input System).
Event bus for decoupled cross-system communication.
This package contains:
— 20+ production-ready scripts organized in clean namespaces
— State machine (Idle → Playing → Paused → GameOver)
— Audio manager with pitch-per-merge-tier and per-category volume
— Editor tooling: dependency viewer, save reset, ScriptableObject validators
— Full documentation with Quick Start, API reference, and customization guide
Placeholder art only. No copyrighted assets. Replace sprites with your own theme in minutes using the Customization Guide.
Tested on Unity 2022.3 LTS through 6000.x. Supports PC, macOS, iOS, Android, WebGL.