TAB UNITY SDK VERSION 8.11
 All Classes Namespaces Functions Variables Properties Pages
Setting up your own game project

Start from empty Unity project

The SDK provides to you an empty Unity project which is already set up for use and contains all the files you need to communicate with the F4F framework. It is also set up using our recommended folder and asset structure (see Recommended folder structure for Unity game assets). The empty Unity project is located at C:\Fun4Four\NZilla\EmptyUnityGame. You can start developing by using this empty project, you'll just have to rename some files during the process to get your game ID (see Requesting your game IDs, see Preparing the submission package) applied to your game. However, you're also free to start from scratch and use a clean or preexisting Unity project by yourself (see Importing the TABUnitySDK package into a clean or preexisting Unity project).


Importing the TABUnitySDK package into a clean or preexisting Unity project

TabUnityUtilitiesImport.png
Importing the TABUnitySDK Package into Unity
The first step for creating a game is to create an empty Unity project or to launch your preexisting Unity project. If you're creating a new Unity project, we recommend you to name the project the same as your game ID (see Requesting your game IDs). Then you'll have to import the provided SDK Unity Package (Assets->Import Package->Custom Package, then navigate to C:\Fun4Four\Developer and import UnitySDKPackage.unitypackage) into your project.

That package contains three DLLs, which are called PhoenixInterfaceDllDotNet.dll, SDKUnityDLL.dll and SDKUnityEditorDLL.dll as well as predefined scenes which are already set up to work with.

The SceneLoader.cs script is used in the scene Start.unity where it loads the game scene after some seconds. This scene also displays the image StartImage.png which is used as game startup screen. You may change this to your own image.






Using the TABUnitySDK assets

Once you have imported this package to your project, you're ready to get in touch with the F4F SDK assets. For detailed informations about the whole library please checkout the TABUnitySDK API documentation contained within this help.

The most important class you'll need to use is called PhoenixController (note: Phoenix is the TAB internal code name of the F4F platform so you'll probably stumble about that term quite often). Access the PhoenixController singleton through it's singleton accessor PhoenixController.Instance.

The most important functions you need to get you game running within the F4F framework are:


Possible Fun4Four player setups

The following player position setups are available to you. You can configure those setups through the GameSettings.ini file. See the inline documentation within the GameSettings.ini file for more information. Each setup has a "nickname", like Line, Tower, or Plus.

Line setup for up to two possible players:

2PlayerLayoutLine.png
Line

Tower setup for up to two possible players:

2PlayerLayoutTower.png
Tower

Plus setup for up to four possible players:

4PlayerLayoutPlus.png
Plus

Square setup for up to four possible players:

4PlayerLayoutSquare.png
Square

Six setup for up to six possible players:

6PlayerLayout.png
Six

Running F4F games without the emulator

During game development you might be interested to launch your games directly from Unity, not using the F4F emulator. This is possible. However, the game will of course not be tied to any F4F environment, thus the F4F SDK methods need to behave as "simulators" of the F4F environment.

To set up that simulation behavior, the F4F SDK provides to you a custom Unity editor which allows you to configure the F4F SDK objects for use without the F4F framework. The editor is called the "PhoenixController" editor. You can configure all values there, which are usually provided to the game automatically by the F4F framework. Once the game is launched within the real F4F framework, the values will of course be ignored, and you'll get delivered REAL values from the system.

PhoenixControllerEditor.png
PhoenixController editor settings

You can set up the following simulation settings:



Helpful hints