Match-3 Starter Kit by DFT Games
Release Notes - Version 2
Breaking changes
None
New features
* Its now possible to make a Match-4 game simply checking the newly added flag Is Match 4in the Inspector.
* Hints: now you can add (in the Inspector) an effect and an audio to be give moves hints to the player. In the Inspector you can also define after how much inactivity time (in seconds) the hint is shown.
* You can now decide to make the new pieces fall from the top instead of flying in from behind the camera simply checking in the Inspector the flag New Pieces From Top.
Release Notes - Version 1.2
Breaking changes
* The boards file name has been changed from board[BoardNumber] to Board[BoardNumber].[rows].[columns], so upgrading from previous version you have to rename the boards accordingly in Unity project view. For instance, the file board1 becomes board1.10.10 (this because in previous version the board was fixed to be 10 by 10.
* The points are now defined as Boards parameters.
New features
New parameters added to the Board script as follows:
1. Mobile input is now supported out-of-the-box.
2. Delegates for Pause, Level Cleared and Time Out called in the OnGUI.
3. The Play Area Editor allows now to define and edit any board size.
4. Rows: amount of rows on the board.
5. Columns: amount of columns on the board.
6. Fill On X: tell the script to fit the board on the screen. This is mostly used on mobile phones. The script will not deform the layout so to have the board actually filling the screen you have to design it having the phone resolution in mind. The board will be resized to fit the screen as much as possible having the starting point set on the upper left corner.
7. Centre on X: This is considered only if Fill On X is True.
8. Points to be awarded are now Boards parameters as follows:
a. Points Normal
b. Points Strong
c. Points Extra Strong
d. Points Super Strong
Type of gameplay
In this script we also give you an original gameplay: Marinas Style (you set the gameplay style in the Board scripts Game Style parameter).
Marinas Style is played by selecting the starting piece when the game starts. The selected piece will be highlighted (using the effect defined in the Active Effect parameter). Once the piece has been selected there is no way back, so the player is supposed to choose the start position carefully. Having the selected piece active the player can click on any other piece on the board to swap position provided that there is a match on at least one side of the swapping pieces. The piece on the clicked position becomes the new selected piece and cannot be changed, so the player has to think carefully before to move to the next match. As usual the goal is to clear the board. In case of clearing under blocked pieces the new selected position is empty: in that case the user has to select a new position to continue.
If you are going to implement Marinas Style gameplay in your game it would be really nice of you to credit it to DFT Games in your games credit screen ;)
Just a note about the blocked tiles: if on the board there are blocked tiles the script spawns the special piece as well. Matching three special pieces unblocks one blocked tile (a demo of this behaviour is in the board2 definition: see the How to define the board section).
Both gameplay styles can be played in Match-3 and Match-4 mode.
Kits Content
The Kit contains the full logic and a simple serialization script to implement a leaders board. All the code has been designed to allow the fastest and lightest execution possible. We have successfully tested it on very slow Atom based netbooks and on mobile using a Sony Ericson Xperia Mini Pro (really slow phone).
How to define a board
In the menu bar select Match-3 SK and execute the Play Area Editor. This will bring up the board definition editor which allows you to properly generate the boards file in the Resource/Data folder.
In the Resource/Data folder there are example files. The files contain the definition of the board coded as follows:
1 = Normal tile
2 = Strong piece on normal tile
3 = Extra Strong piece on normal tile
4 = Super Strong piece on normal tile
5 = Locked tile
X = No tile
The file name must be board followed by a number, a dot, the number of rows, a dot and the number of columns; its file extension is TXT and is ASCII encoded. The board number is the one used in the Board components parameter Board Number, rows and columns are the Board parameters Rows and Columns.
Creating a Match-3 level
Just drop a board on screen and define the empty objects Left and Right to mark the boards limit and add to your board the Board script, then feed all its parameters (also add an Audio Source!). You can define as many pieces as you want feeding their prefabs to the list parameters for the 4 classes: Pieces Normal, Pieces Strong, Pieces Extra Strong and Pieces Super Strong. Setting the Max Pieces parameter you decide how many pieces should be actually put into the game picking from those lists. On a 10 by 10 board, six pieces for the Standard Style and Five for Marinas Style are our advice to avoid too many reshuffles. Remember to change the PieceColour structure (in Definitions.cs) to match the number of pieces you actually put into your game!
Pieces
Have a look to the Prefabs folder. There are four different subfolders in the Pieces folder: Normal, Strong, ExtraStrong and SuperStrong. Each piece is a GameObject containing an AudioSource and the PieceScript component along with a suitable collider to allow mouse events detection. The actual mesh is a child of the Piece.
Adding your code
The Board script is the actual game manager. Once the time is up or the level is cleared you have to do something. As you can see in Board.cs the Update just exits as follows:
if (TimeOut || CleanSlate || GamePaused)
return;
in the OnGUI we check these states and execute thje methods assigned to the three delegates. In your code you are supposed to feed the delegates to manage the three situations. The delegates are accessible as follows:
Board. GamePaused to signal the pause to the game
Board.Instance.GamePausedMethod to set the method to manage the pause
Board.Instance.TimedOutMethod to set the method to manage the Time Out (player loses)
Board.Instance. LevelClearedMethod to set the method to manage the Game Cleared state (player wins)
Support
In case you need any help implementing our Kit do not hesitate to write at pino@dftgames.com
Thank you for using Match-3 Starter Kit! Dont forget to add your review on the Store!
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
unity3d仿'宝石迷阵'源码及全套资源可编译运行 (413个子文件)
00000000000000001000000000000000 4KB
00000000000000002000000000000000 4KB
00000000000000003000000000000000 4KB
00000000000000004000000000000000 4KB
00000000000000004100000000000000 4KB
00000000000000005000000000000000 4KB
00000000000000005100000000000000 4KB
00000000000000006000000000000000 4KB
00000000000000006100000000000000 4KB
00000000000000007000000000000000 4KB
00000000000000008000000000000000 4KB
00000000000000009000000000000000 4KB
0000000000000000a000000000000000 4KB
0000000000000000b000000000000000 4KB
0000000000000000c000000000000000 4KB
00ad737648fba984e87a9880cd241de4 5KB
00f5c1816756fb649b97ae55e7ed16c9 15KB
0b036b0f857a100419294ee83a695f82 17KB
0dacba940f121694faeb45130201d947 4KB
0e1803e693b23f94c9461ae29e13fa5a 4KB
1049c4c7058ba2948971f1db567fb01c 1.35MB
1b3652dbe63083442867e3029c671fbe 4KB
1ec6ebe5265349c4cbe307f741287235 42KB
228e84973df04fc4aaaed14f8bf555d6 710KB
25e35cd7560bf3849864e2b72a7b5c62 18KB
26d2a364eefb24240b07a751b5d2ba91 4KB
27342c0396dab6440af5eb70044cf55c 11KB
2d23c53d185dfc04ab381d9dc40e2aea 24KB
2e04a8f62b4b3084284f95ef91391457 59KB
35720775ef4cd4444a14a5759c5c1d89 8KB
3671f8a04c8f7a444abbe4886c860dd0 9KB
37265c06035f49b4c82330b85b4d83fe 13KB
37a847784f0ea8b4cb3d4fcd841eb9b0 18KB
39df67cd27adee5408ee74cbeccd4eda 4KB
3ab7775297bbdc247b18fe52ce9f2cdf 4KB
4cbe64a723b0fa14b99cf1fa480603b0 13KB
4ed8a6d226fbbfc41b47054c3a1cfed6 9KB
4f8483a1d6fbfd042a1d1c67609fad3e 232KB
5010824e485d3f44991720855ad55c90 4KB
53026e62c32da3a4f97699278bfc119b 8KB
5320f872fc267584e8e3449acf1734a0 13KB
55684bcfde1724243a75d634a20b2362 4KB
55c289ca77c1d1040a73c22ee08aa1d3 4KB
57f9fb87ebda5ac4585c64c672ead2e6 4KB
59e13f703c903254e92cec58b7bfa1bd 21KB
5a886cb1c19040d48b77cc1c0204f3b4 17KB
5f98df25f75e7be4bbb7e88b3dc0c35d 4KB
611935280bfae844ca79ff18a33269ef 12KB
616df79a701553f4bbf97a72fb340242 1.36MB
623a616cf2d97944db7d683659d031b6 24KB
6594619988b660040ba10c6cfa60d338 8KB
66b7f9423167a0349b2a0a3137d2657a 4KB
67242860a65b7f3439771f05620eab63 4KB
67935da9170fb2746a3721b90a5bbbc0 15KB
67f2b1b532b2d694ca7ea644a5238567 4KB
68097794f144a574d9a4eabd74d4cc90 21KB
6ebbfa61655dafe4e8d9049d0db59535 4KB
6fd3b8587c9537a4db5831cb779ab93c 4KB
7055e12547ba70645b2ec1609078abc9 15KB
7067d9997436967498355f2214d73fb8 9KB
70bf77ad02406024f86cd826c46793a8 20KB
729455710ef578c42a96df4292656326 6KB
7867f61dc8e34704f9e1b86a64a8f38e 4KB
78e02b6222b46f848ac667589fdcf372 10KB
7a7dd577f3faed04f835146a685c01b6 25KB
7b0062922db77b9409bf182b82399112 16KB
7e5b228491e85654fbc71e5ccee7c21e 50KB
8057ee9687a86a942bf585718562ca83 12KB
818e70c1540232441b37596d3096c9c7 12KB
8750cd02de184644b9d5391348344d44 17KB
88172cb0578bf3146bdf9ad34b4d2250 69KB
8d560b6af2792ec40855289a1ebf24e8 4KB
8f7cf80fcb0f9cf48b235636b9561fac 8KB
91e675e1ff0a20444b888d8ebf046433 16KB
9556335d2a657384787af613d648bba6 8KB
95a8845f7288a104fb6241a50e7b1cdf 25KB
97d326f98f24c3d46818b490b3e62486 9KB
99f1f97a603e80f4eb9472b2e92591a3 18KB
9d50480ea25271243be3a37840977431 17KB
9dac8e4ddc491e74abb4d1fddb4b5228 25KB
__EditModeScene 34KB
a018c36c0c17e374c993e400b4b73b64 17KB
a1d4ee7e52227f845a042b01930040f7 6KB
a242af1bb613cea4f80d3d616516bce8 4KB
a278caa96f0488f4f88a38a6d37a34b0 10KB
a40cf638bd714a44db311e3443ebca84 26KB
a51dba94edfe70943bcdbe941a92cf62 11KB
a620506097da64f4896c6065bda6ffe4 9KB
a950d3c22cbc20748904cabf445d916e 10KB
a97b45c82e943e2489a614d1beaa308e 4KB
aaa4e25f746652b469378127b974c537 4KB
aaaedd8af966f3e4d9dff766c9da24e0 703KB
ad17188e4374b604d9f5765a2fd9d614 10KB
ad8b1d5dfed7fc842a2a5cc04a27db4c 4KB
af5af79f53d7da84980a9285c1f7b8d1 4KB
AnnotationManager 1KB
ProjectSettings.asset 19KB
NavMeshLayers.asset 9KB
ProjectSettings.asset 9KB
TagManager.asset 5KB
共 413 条
- 1
- 2
- 3
- 4
- 5
资源评论
- Mus_jun092014-08-13跟宝石迷阵功能还是差很多,也很好了 ,就是代码没注释,看的难
- 踏岸寻柳2017-12-22没有代码,大家不要下了
- luhaixing20122014-02-27Building an Application with Native Plugin for iOS 创建一个有本地插件的iOS应用 Define your extern method like: 定义extern方法如下: [DllImport ("__Internal")] private static extern float FooPluginFunction (); Switch the editor to iOS platform 切换编辑器为iOS平台 Add your native implementation to the generated XC
- GerdonYao2018-05-28用起来比较麻烦,不过比较早了
纸壳手雷
- 粉丝: 1
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功