├── .idea ├── modules.xml ├── uiDesigner.xml └── vcs.xml ├── README.md ├── Unity-game-line-3.iml └── gif ├── Match-Three-v.0.9.1.gif ├── Match-Three-v.0.9.5.gif ├── Match-Three-v.0.9.6.gif ├── Match-Three-v.1.0.4.gif ├── Match-Three-v.1.0.5.gif ├── Match-Tree.gif └── Separator.png /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/uiDesigner.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Cube Line Match 3 - Puzzle Game 2 | 3 | Getting Started Game - Proof of Concept v.1.0.5. 4 | 5 | ![](gif/Match-Three-v.1.0.5.gif) 6 | 7 | # [Video PlayList](https://www.youtube.com/playlist?list=PLNph7ndeSqE8GtUUGKSLgPERU7Lj6-8YI) 8 | 9 | 10 | How to make a Match Line 3 Game 11 | * 25 - Match Line 3 - Focus Node Selected ( SleepyWings ** ) 12 | * 24 - Match Line 3 - Auto Remove Link Match Line / Left outer join ( SleepyWings ** ) 13 | * 23 - Match Line 3 - Auto Reset 14 | * 22 - Match Line 3 - PathFinding based algorithm that solves the "kata game of life" of the coding dojo. 15 | * 21 - Match Line 3 - Auto Match Line 3 / IA PathFinding 16 | * 20 - Match Line 3 - Exit Button 17 | * 19 - Match Line 3 - Fade Out 18 | * 18 - Match Line 3 - Testing Auto Match Horizontal - Vertical 19 | * 17 - Fruit Legend - Bug Match ** 20 | * 16 - Match Line 3 - End dialog 21 | * 15 - Match Line 3 - Pause Dialog 22 | * 14 - Match Line 3 - Timer Count Down 23 | * 13 - Match Line 3 - Auto Match 3 Vertical - Fruit legends 24 | * 12 - Match Line 3 - Auto Match 3 Horizontal - Fruit legends 25 | * 11 - Match Line 3 - Animation drop cubes 26 | * 10 - Match Line 3 - Match line-link with new drop cubes 27 | * 09 - Match Line 3 - Match with new drop cubes 28 | * 08 - Match Line 3 - Remove line-link cubes w/up touch 29 | * 07 - Match Line 3 - Linked cube w/line & point 30 | * 06 - Match Line 3 - Linked cube w/line 31 | * 05 - Match Line 3 - Line Draw 32 | * 04 - Match Line 3 - Reset 33 | * 03 - Match Line 3 - Start Dialog 34 | * 02 - Match Line 3 - Mount Board 35 | * 01 - Match Line 3 - Proof of Concept Mobile 36 | * 00 - Match Line 3 - Proof of Concept Desktop 37 | 38 | # [Unitor - MicroFramework supported by Unity 5.0](https://github.com/vicboma1/FrameworkUnity) 39 | 40 | # MVC Architecture 41 | 42 | ## _Puzzle 43 | 44 | ### State Machine 45 | ``` 46 | Controller 47 | Model 48 | ``` 49 | 50 | ### Input 51 | ``` 52 | Controller 53 | Model 54 | ``` 55 | ### Board 56 | ``` 57 | Controller 58 | Model 59 | View 60 | Adapter 61 | ``` 62 | 63 | ### Match 64 | ``` 65 | Cache 66 | Detector 67 | Iterator 68 | Model 69 | Controller 70 | Manager 71 | ``` 72 | 73 | ### Node 74 | ``` 75 | Animation 76 | Model 77 | View 78 | Adapter 79 | Controller 80 | Factory 81 | Manager 82 | ``` 83 | 84 | ### Union 85 | ``` 86 | Cache 87 | Point 88 | Line Renderer 89 | Adapter 90 | ``` 91 | 92 | ## _Score 93 | ``` 94 | Model 95 | View 96 | Controller 97 | Adapter 98 | Manager 99 | ``` 100 | 101 | ## _CountDown Time 102 | ``` 103 | Controller 104 | ``` 105 | 106 | 107 | _______________ 108 | 109 | 110 | 111 | ## Puzzle Core States 112 | ```c# 113 | public enum PuzzleState { 114 | STAND, 115 | DROP_NODES, 116 | FIND_MATCH, 117 | CLEAR_NODES, 118 | RESET_ON, 119 | RESET_OFF, 120 | PAUSE_ON, 121 | PAUSE_OFF 122 | } 123 | 124 | ``` 125 | 126 | ## Puzzle Events 127 | 128 | ### State Machine 129 | ```c# 130 | event EventHandler OnDropNodesCurrentState; 131 | event EventHandler OnClearNodesCurrentState; 132 | event EventHandler OnFindMatchAutoLineCurrentState; 133 | event EventHandler OnPauseONMatchCurrentState; 134 | event EventHandler OnPauseOFFMatchCurrentState; 135 | event EventHandler OnResetMatchCurrentState; 136 | event EventHandler OnEndResetMatchCurrentState; 137 | ``` 138 | 139 | ### Configuration 140 | ```c# 141 | event EventHandler OnStartPauseGame; 142 | event EventHandler OnEndPauseGame; 143 | event EventHandler OnNewMatch; 144 | event EventHandler OnInitializeGame; 145 | event EventHandler OnResetMatch; 146 | event EventHandler OnNewCombo; 147 | ``` 148 | 149 | ### Core Controller 150 | ```c# 151 | event EventHandler OnNodeModelMatch; 152 | event EventHandler OnResetNoAutoMatch; 153 | event EventHandler OnNoLinkAutoMatch; 154 | event EventHandler OnStartTouchFirstNodeModel; 155 | event EventHandler OnEndTouchFirstNodeModel; 156 | event EventHandler OnStartMovimentSameNodeModel; 157 | event EventHandler OnEndMovimentSameNodeModel; 158 | event EventHandler OnEndMovimentDifferentNodeModel; 159 | event EventHandler OnStartMovimentDifferentNodeModel; 160 | ``` 161 | 162 | ### Match Controller 163 | ```c# 164 | event EventHandler OnDisposeMatch; 165 | ``` 166 | 167 | ### Node Controller 168 | ```c# 169 | event EventHandler OnDisposeNode; 170 | ``` 171 | 172 | ### Animation Node Controller 173 | ```c# 174 | event EventHandler OnCompleteAnimation; 175 | event EventHandler OnStartAnimation; 176 | event EventHandler OnDisposeAnimation; 177 | ``` 178 | 179 | 180 | _______________ 181 | 182 | 183 | 184 | ## Score Event 185 | 186 | ### Controller 187 | ```c# 188 | event EventHandler OnQuantityNode 189 | ``` 190 | 191 | 192 | _______________ 193 | 194 | 195 | 196 | ## CountDown Time Event 197 | 198 | ### Controller 199 | ```c# 200 | event EventHandler OnStepCount; 201 | event EventHandler OnEndCount; 202 | event EventHandler OnStop; 203 | event EventHandler OnStart; 204 | ``` 205 | 206 | 207 | @Author : Victor Bolinches Marin 208 | -------------------------------------------------------------------------------- /Unity-game-line-3.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /gif/Match-Three-v.0.9.1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vicboma1/Unity-game-line-3/bf29bd5499c96a37cdb0dedab7acc920185ef067/gif/Match-Three-v.0.9.1.gif -------------------------------------------------------------------------------- /gif/Match-Three-v.0.9.5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vicboma1/Unity-game-line-3/bf29bd5499c96a37cdb0dedab7acc920185ef067/gif/Match-Three-v.0.9.5.gif -------------------------------------------------------------------------------- /gif/Match-Three-v.0.9.6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vicboma1/Unity-game-line-3/bf29bd5499c96a37cdb0dedab7acc920185ef067/gif/Match-Three-v.0.9.6.gif -------------------------------------------------------------------------------- /gif/Match-Three-v.1.0.4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vicboma1/Unity-game-line-3/bf29bd5499c96a37cdb0dedab7acc920185ef067/gif/Match-Three-v.1.0.4.gif -------------------------------------------------------------------------------- /gif/Match-Three-v.1.0.5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vicboma1/Unity-game-line-3/bf29bd5499c96a37cdb0dedab7acc920185ef067/gif/Match-Three-v.1.0.5.gif -------------------------------------------------------------------------------- /gif/Match-Tree.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vicboma1/Unity-game-line-3/bf29bd5499c96a37cdb0dedab7acc920185ef067/gif/Match-Tree.gif -------------------------------------------------------------------------------- /gif/Separator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vicboma1/Unity-game-line-3/bf29bd5499c96a37cdb0dedab7acc920185ef067/gif/Separator.png --------------------------------------------------------------------------------