Berry Match 3 Manual - Unity Asset
Berry Match 3 Manual - Unity Asset
Contents
On the picture above, you can see the scheme of the framework
structure. The scheme shows 2 main logic groups user interface
and gameplay.
The user interface was implemented on native instruments of Unity
engine. However, while Unity engine does not consist page
manager, pop-ups and other meaningful structures of interface,
special script was made to solve this problem - UIServer. If you are
interested in work of this script please read the article below.
Interface consists 2 important parts Level List and Berry Store.
The Level List consists the set of game levels. You can create new
2. One of coroutines
3. One
4.
5.
All panels that you want to use in game should be child objects of
the UIServer component. Each panel should have at least CPanel
component. That is why CPanel component is necessary to
initialize object as panel. The list of panels in demo-scene you can
see below:
Pages are separate elements of the Pages array. Each page has
unique name and list of the panel names that this page includes.
As an example, let us add one more panel in Pause page. Let it be
interface panel of the game field Field:
As you can see in the pause menu the interface of the game field is
reflects.
The UIServer component also has defaultPage parameter the
page name that opens when player starts a game.
To open some page the function UIServer.main.ShowPage(string
name) is using. Where name is the name of page.
There is also function UIServer.main.ShowPreviousPage() it opens
the previous page.
It is better to use the event onClick in UI.Button component when
creating interface.
On the top you can see the panel with level settings and game
modes:
Below is instrument panel. Here you can choose one of the field edit
modes.
In Jelly mode you can adjust the place where jelly would
locate. Jelly could have many level three at max.
In Block mode you can adjust the place where blocks would
locate. Blocks also could have many levels three at max.
Wall mode allow to set the walls between slots, that would
impede the movement of chips between this two slots.
Below you can see the pre-view of the game field. The pressure on
some slot changes its properties depending on chosen editing
mode.