SFML community forums

General => SFML projects => Topic started by: ChronicRat on April 08, 2014, 08:34:14 pm

Title: [Game] Croger
Post by: ChronicRat on April 08, 2014, 08:34:14 pm
So, we are at finish line with Windows release. Then will be build for Linux and port to Android.
This simple game is for young smart kids to improve or indroduce them an art of programming. =)

Gameplay video:
http://www.youtube.com/watch?v=G19a8HvsbRg
http://www.youtube.com/watch?v=I_bOJ0SA4xY

Game's page:
http://familyxoft.com/blog/?page_id=2
(http://static.old-games.ru/uploadedimages/2013/11/20/16874528cea4ea7abf.png) (http://"https://play.google.com/store/apps/details?id=com.familyxoft.croger_demo")

Soon i'll do normal page for this game on my site with all game related information and tutorial.

PS And i'll ask my friend to do normal translation to english and deutsch. If someone wants translate to other languages - you are welcome.

PPS Game uses my GIPE framework based on SFML (and it's dep-s), Lua, OOLua, glm, zlib, minizip. I want to thank all of these libs creators. I'm used SFGUI, but had to refuse because of different vision of some things and because of GIPE is optimized to use several threads. So GUI is my own, but i want to thank SFGUI creators too. =)

Title: Re: [Game] Croger
Post by: coyotte508 on April 08, 2014, 10:56:04 pm
Awesome.

Maybe the buttons (Jump/Step/...) could be improved graphically, but the concept of the program (and the display of the code in graphs at the left) is just awesome  :D
Title: Re: [Game] Croger
Post by: ChronicRat on April 09, 2014, 08:06:29 am
Awesome.

Maybe the buttons (Jump/Step/...) could be improved graphically, but the concept of the program (and the display of the code in graphs at the left) is just awesome  :D
Thanks. =) I'll start improve graphics after Android port.
Title: Re: [Game] Croger
Post by: ChronicRat on December 13, 2014, 08:30:44 pm
Android, beta demo version - https://www.dropbox.com/s/409org6py72zkq7/croger.apk?dl=0
Welcome!
Title: Re: [Game] Croger
Post by: Cpl.Bator on December 14, 2014, 12:25:45 am
Wonderfull, tested on android , very good, but scroling need two fingers for the left side ( not tested with the central side )
if you want , i can translate it in French , give me the english base file by pm.

Title: Re: [Game] Croger
Post by: ChronicRat on December 14, 2014, 07:18:51 am
Wonderfull, tested on android , very good, but scroling need two fingers for the left side ( not tested with the central side )
if you want , i can translate it in French , give me the english base file by pm.
Scrolling by two fingers is because one finger used for highlighting and block's movement. Yes, you can help with translate. =) It would be great!
And you can add new id for translator:
ABOUT_MESSAGE=Programming: Ilia Pavlovets\nMusic: Artur Tohtash\nFamilysoft © 2014\twww.familyxoft.com
TRANSLATED_BY=Translation to English by: Somebody
 
Title: Re: [Game] Croger
Post by: Cpl.Bator on December 14, 2014, 02:00:11 pm
i beginning translating , in french we have some special caracters like this : éèà , etc...
did you support them ?
i think is not good idea to translate this specials word in english : IF DO WHILE , etc...
it's strange in french : SI , FAIRE , TANT QUE , etc... what do you think about it ? 
Title: Re: [Game] Croger
Post by: ChronicRat on December 14, 2014, 02:30:55 pm
If font does not conain these characters - font will be changed. Don't forget to save the file as utf-8.
The game is for children, so as I think, all commands must be translated too.

Title: Re: [Game] Croger
Post by: marchred on December 14, 2014, 06:48:07 pm
Hi, everyone, very interresting project if you ask my opinion.

I just wanted to point something about this whole translating thing :

Even if it is done for children, is it a good idea to translate some "english commonly used words" in the programming ?

Or maybe find a way to put the to words (english/french) side by side... I honestly have no idea.

It's just that the french kids may have fun with this project buuuut they may not be able to connect what they learned with another programming language that is massivement using "if, else, ...".
Title: Re: [Game] Croger
Post by: ChronicRat on December 14, 2014, 06:54:22 pm
I'm started programming when I was about twelve with the game of that kind. And there were all commands in Russian, but I had no problems because of it. Then I used Basic on ZX Spectrum, and there was no problem with english commands.
PS And I'm still have no problems with English! =)
Title: Re: [Game] Croger
Post by: Cpl.Bator on December 14, 2014, 08:13:14 pm
This is the first version.
Give me the complete edition for improve translation , for me , the help is not clear.
Title: Re: [Game] Croger
Post by: ChronicRat on December 15, 2014, 06:10:18 am
It is complete, except saving code. But text is full. What is not clear?
Title: Re: [Game] Croger
Post by: Cpl.Bator on December 15, 2014, 11:44:55 am
the help is not clear, i want to see it in action for verify my translation, how can add langage to the demo ?
French langage is more complex than English.
Title: Re: [Game] Croger
Post by: ChronicRat on December 15, 2014, 12:36:17 pm
APK with French integrated.
https://www.dropbox.com/s/409org6py72zkq7/croger.apk?dl=0
It is possible to open APK as zip archive and replace ./assets/resources/language/fr.lang, but I don't know what about checksum, will OS check it on install? Or may be is there way to change fr.lang on the device?
Title: Re: [Game] Croger
Post by: AlexAUT on December 15, 2014, 07:55:08 pm
You could get the language of the device via JNI and load the right language file. You would have to use JNI because the NDK does not have a function to get the current language.


AlexAUT
Title: Re: [Game] Croger
Post by: ChronicRat on December 15, 2014, 07:59:14 pm
I don't have problems with language detection. You can see the code in my GIPE framework.
LanguageManager::LanguageManager():
        Manager("Language Manager", false),
        IUpdatable(true)
{
#if defined(ANDROID)
        std::string loc = sf::GetLanguage();
        const char* curLoc = loc.c_str();
#else
        const char* curLoc = setlocale(LC_CTYPE, "");
        Log::Message("LanguageManager: current locale is %s", curLoc);
#endif

        if (curLoc)
        {
                mLangId = std::string(curLoc, 2);
        }
        else
        {
                Log::Warning("LanguageManager: using default locale %s", mLangId.c_str());
        }
 
Where sf::GetLanguage is my modification for SFML.

std::string GetLanguage()
{
    priv::ActivityStates* states = priv::getActivity(NULL);
        Lock(states->mutex);
    char lng[3] = { 0 };
    AConfiguration_getLanguage(states->config, lng);
    return std::string(lng);
}
Language can be selected from the game directly.
Title: Re: [Game] Croger
Post by: AlexAUT on December 15, 2014, 08:38:47 pm
Ahh, ok good to know that it is possible with native code.

And i had missunderstood your question  ;)


AlexAUT
Title: Re: [Game] Croger
Post by: ChronicRat on December 16, 2014, 06:41:46 am
And i had missunderstood your question  ;)
My English is very good for misunderstanding. =)
Title: Re: [Game] Croger
Post by: Cpl.Bator on December 16, 2014, 07:00:13 pm
ok, Android version is not the same than PC , i search for help in PC version... i try on my galaxy note 3 is better ^^
well , Translation is finish , but i've got a small problem with the "Main Procedure" in French "Procédure principale" the sentence is outside the button , can i use tabulation \n :  "Procédure\nprincipale" ?
Title: Re: [Game] Croger
Post by: ChronicRat on December 16, 2014, 07:23:24 pm
ok, Android version is not the same than PC , i search for help in PC version... i try on my galaxy note 3 is better ^^
well , Translation is finish , but i've got a small problem with the "Main Procedure" in French "Procédure principale" the sentence is outside the button , can i use tabulation \n :  "Procédure\nprincipale" ?
Yes, \n can help. But how will it look? I don't know. =)
Title: Re: [Game] Croger
Post by: Cpl.Bator on December 16, 2014, 07:40:31 pm
Quote
But how will it look? I don't know. =)
Just run the french version and go to new game , or "nouvelle partie"
Title: Re: [Game] Croger
Post by: ChronicRat on December 21, 2014, 12:16:02 pm
New demo version will be available on GP in few minutes, its uploading now. I changed control - now everything is done by one single finger. =)
Title: Re: [Game] Croger
Post by: ChronicRat on January 30, 2015, 05:43:47 pm
I added smooth turns to any angle and THE BUTTERFLIES!!! =)