Everlasting Summer (Defold edition)

Sorry. Fixed link. It same as in beginning, copied here only for convenience.

Implemented basic dialog system and menu for branching dialogs. Provide all poses for actor Slavya and work on day 1 story.

Think how to manage multilanguage support. Maybe translation files?

Yup, Iā€™d put my translations into either a json file or directly into a Lua table in a module and then use another Lua module to do lookups of string values based on device language (read from sys.get_sys_info().device_language). I created a small example to show what I mean:

https://github.com/britzl/publicexamples/tree/master/examples/localization (SOURCE)
http://britzl.github.io/publicexamples/localization/index.html (DEMO)

3 Likes

Thank you. I will look into code.

1 Like

Managed to make first scene behind gates. Actor shown and hidden, moved on screen and scaled.

Text from start to end talked and dialog branched on choice.

Trying to figure out how to handle game objects. Iā€™m create actor with 4 sprites on it and hide it at end of story.

But maybe deleting it will be wiser in future?

Refactored code to lua modules. Now dialog is object-like table in module. This can make easier to introduce new dialogs with new characters.

Improved visual for dialog. Now player can see which character said by looking on icon of actor at right side of dialog.

Next stage is moving to common place scenario/plot and manage to introduce multilingual one.

With external dialog object it can be as easy as change instance. I presume that language can be changed on fly at any time.

One thing to work with - scenario object to hold dialog/scene objects and divide chapters of visual novell to scenes. It will help debug dialogs fast.

game version 0.6

1 Like

Cool! Itā€™s nice to see that you are making steady progress!

Thank you.
I wish to finish my base game ā€œBoomTrixā€, but for this I should learn engine thoroughly.
Defold is easy to learn and pretty fast as well. I think, that with help of it BoomTrix can be made in half of year.

Introduced actor highlight when they said something to distinguish them from the crowd.

Found english translation and working on introducing multilingual (english/russian) gameplay.

game on gamejolt (v.0.7)

2 Likes

BTW, how did you implement Russian text display? Iā€™ve tried to use Russian yesterday in my game but couldnā€™t get Russian letters showing. Any tip?

You need a font that supports Russian and then also add the cyrillic alphabet to ā€œExtra Charactersā€ field in the font properties.

1 Like

@britzl Iā€™ve actually tried that (added a .ttf that definitely has Russian characters) but at least the Editor didnā€™t show Russian characters, instead it showed tilde characters. Iā€™ll try again tonight. Thanks!

And you also added the characters to ā€œExtra Charactersā€? It should work, Iā€™m sure of it. Let me know if it doesnā€™t work. Also, @stormarchitextor, did you do anything else to get russian characters to display? And do you also see them in editor?

Iā€™ve just realized that I havenā€™t added them as Extra Characters but enabled an option like ā€œexport all charactersā€ (canā€™t remember the actual name). After enabling this option I saw Russian characters in font preview. I thought that it would do the trick.

Let us know if ā€œExtra Charactersā€ solves the problem. I think you are referring to the ā€œall_charsā€ boolean option, but I donā€™t know what it does and itā€™s actually not documented either (@sicher, all_chars, cache_width and cache_height arenā€™t documented).

Yes, ā€œExtra Charactersā€ worked totally fine, thank you! It looks like a workaround but a reasonable workaround :slight_smile:

BTW, is there some existing easy to use solution/library to support several languages in the app? Maybe, itā€™s time for me to develop one? :slight_smile:

I made a small example of this a couple of posts back in this thread: Everlasting Summer (Defold edition)

It could be extended quite a bit though and Iā€™d be happy to see a community contributed project that does this! One thing you probably wish to do is to be able to if needed also change font when changing language.

1 Like

Thanks for the tip! Ok, Iā€™ll create this library (donā€™t have an ETA for it, of course). I plan to support at least English and Russian in my game so the library will be tested in the real world :slight_smile:

1 Like

Excellent, looking forward to it!