Lines is a full Unity puzzle game source code that delivers classic ball‑matching gameplay with smooth mechanics and ready monetization. Designed for wide compatibility, this game can run on Android, iOS, WebGL, PC and most platforms supported by Unity. It includes both interstitial and banner AdMob ads so you can start earning right away after setting up your IDs. The project is well structured and easy to understand, making it a great starting point for developers or studios who want to publish quickly.
To enable the ads you simply go to Assets, then Google Mobile Ads, then Settings and enter your App ID from your AdMob console. Then open the “Menus.cs” script. There you will put your interstitial ad IDs (for Android and for iOS on separate lines), and also your banner ad IDs on specific lines. Once configured, the monetization works out of the box without much additional work.
Unity Color Match Puzzle Game
The rules of gameplay are simple but engaging. You must arrange five or more balls of the same color to clear them from the board. Matches can be horizontal, vertical or diagonal. To move a ball you click or tap it to select, and then tap an empty tile to move it there. Movement is allowed only when there is a valid path between the start and end tile. Scoring increases with larger matches: arranging five balls yields 5 points, six yields 11 points, seven yields 18, eight yields 26 and nine yields 35.
Because, this Unity color match puzzle game supports many platforms and has familiar mechanics it has wide appeal. Players can enjoy relaxed sessions or try to clear large combinations for higher scores. The touch or click controls feel natural whether played on mobile or desktop.
- Cross‑platform compatibility with Android, iOS, WebGL and PC
- Banner and Interstitial AdMob ads already integrated
- Clear setup instructions for inserting ad IDs via “Menus.cs” and AdMob settings
- Simple yet addictive rules: match five or more balls of the same color
- Multiple directions supported: horizontal, vertical, diagonal matches
- Movement only through available paths, adds strategic planning
- Scoring scales with size of match: 5 → 5 points, 6 → 11, 7 → 18, 8 → 26, 9 → 35
- Clean code that is easy to understand and modify
Lines is a ready‑to‑publish Unity puzzle game source code that combines familiar and satisfying gameplay with monetization already built in. It offers both simplicity for relaxed play and enough challenge for score chasers. For anyone who wants a polished color match game they can tweak and launch quickly, this source code gives you all the building blocks you need. Check out more Unity 2D Puzzle Game Source Codes.
Features Of Lines Unity Source Code
- One touch controls
- Endless puzzle game
- Easy to reskin
- Ready for release
Requirements
- Unity 2018.4.35 or newer
Instructions
-
Unzip the Downloaded File
Extract the contents to a folder on your computer. -
Open the Project in Unity
-
Open Unity Hub
-
Go to the Projects tab, click Add
-
Select the unzipped folder to open the Unity source code
-
-
Start the Game
-
In the Project window, navigate to the Scenes folder
-
Open the scene named “Game”
-
Everything is pre-configured — the project is ready to go!
-
