Since finding out about the RAGE project I’ve become very interested in just how easy it can be for somebody who is not a game developer (like me) to make simple and distribute them on market places. Unity goes a long way in making game development easy but there are still many skill sets required to get a game up and running, personally I find animation, character modeling and UI design quite challenging. While poking around assets for Unity I discovered Fungus Games, an open source interactive storytelling kit. The storytelling kit itself is an easy to install add on for Unity that adds a ‘Workflow’ window to the IDE. In window tool you can create a decision tree where users can create text and present the player options that change the flow of the story. There are options to add characters, backgrounds, variables and the such that I haven’t really got in to but seem really easy to use. As a test to see just how easy it is to use I decided to take some questions from my Revision Bot and create a quick 10 question game. It was easy and quick to get something basic up:

1. Download and install Unity

I opted for Unity 5, some developers are staying on 4 for now, but I guess this is due to compatibility with their existing assets. I recommend 5.

2. Install Fungus

Once you have started a new Unity project you need to import the fungus package. First download the package from the Fungus site, then you can either click ‘import package’ from within Unity or just double click the .unitypackage file from within Explorer/Finder.

3. Create a workflow for the game

Unity IDE after installing Fungus

Unity IDE after installing Fungus

The Fungus option should have been added to your menu bar when you installed the Fungus plugin. To start creating a simple game you need a workflow which can be added from this menu via Fungus->Tools->Create->Flowchart in Unity (A). This will add a workflow component in the hierarchy, you can change the name and such in the inspector. By clicking the workflow component you should be able to explore a new window called ‘workflow’ (C) where you can add blocks of text/menus/decisions.  By clicking the plus icon in the top left of the workflow window you can add a block to the workflow and then by then clicking the block you can add all sorts of events to your games. I added simple ‘say’ blocks which ask the user a question, then I added three menu items. One of these menu items increases a variable callled ‘score’ while the other simply moves on to the next question without increasing the score.

4. Edit your story

At this point I had only added placeholders for the text. To add questions and answers I found the best way was to export the story as a text file, fill in my questions and then import it back in Unity/Fungus. This can be done by creating a ‘Localization’ and clicking the export button.

After adding 5 questions I thought I would see if the game would export and play on various devices. It worked straight away on my windows phone so I have no reason to expect it wouldn’t work on other phones. One feature I didn’t play with, but was impressed by was the ‘view’ component. This makes shows the developer where different screen sizes are on 99% of android devices making it really easy to get something running that will look ok on most devices. I also tested it out by exporting to HTML 5, which seemed to work, but the large file size seems to be a problem when I host it online, if you really want to you can try out the skeleton of my app here, but no promises it will work well.

5. (TODO) Add graphics, score at the end, options etc

There is lots to add to the game, but I was just so impressed at how easy it was to get started. The whole process took about 30 mins, the longest bit was adding the questions. I am interested in being able to auto populate the questions. Maybe I could randomise them from my database of questions?

 

How the question and answer blocks display in game:

questionblockanswerblock


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

css.php