neljapäev, 5. november 2015

Day 8, 9, 10 - multilingual support

Like in my old project, I wanted my unity game have runtime language switching opportunity.

For certain, I will have 2 languages (English and Estonian), also 3rd language (Russian) is easy to add. Other languages might be added by community and as all data is loaded from XML files, I might end up with 30 languages that can be switched runtime.


I had to learn how to make runtime scrollable content, so I went through several tutorials, like this one about scrolling menus runtime.
So I tested it with 40 potential languages and ended up with something like this:



So thats how opening screen looks like now (together with language selection):
























I wanted to use Unity's own event system for swapping language and after many tutorials like this I went with simplest solution (tutorial here) .

esmaspäev, 2. november 2015

Day 7 Recap

Yeah. All my collections are loaded into Game Control object. I can use them.

























I could start on "battlefield setup window" tomorrow. So I can set up the 2 armies of characters that are supposed to get into fighting. After that ->  my battlefield scene.


pühapäev, 1. november 2015

Day 4-6 Recap

I found another excellent tutorial about Unity Event system, it showed nicely how to apply events not only to canvas, but to other stuff on your scene as well (like a door).

Also I watched tutorial about making new UI elements and accessing them. Actually I did plenty of Unity tutorials. Enough for me to make game's main menu's first version:
























Then I started tranfering data classes from my old XNA project into Unity . Just tranfering all those classes was like huge job, commenting out tons of code. I had to solve around 700 red errors total. And worse, I have to rewrite that code for Unity.

My next job is to to use those data collection-classes (load them into memory).