Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ChronicRat

Pages: 1 ... 4 5 [6] 7 8 ... 22
76
SFML projects / Re: Lord of war - capture the flag
« on: January 03, 2015, 07:05:45 pm »
My stupid commandos (in red berets) ran away to born place. Then I lose. =)

77
General / Re: CodeBlocks and SFML2.2 issue
« on: December 24, 2014, 05:45:21 pm »
I don't know about speed, but I have just two VERY BIG differences in my code between GCC and MSVC version: sprintf functions and this keyword for class fields in templates must be used for GCC but not required in MSVC. And I not use any additonal (runtime) DLLs - only static libs.

78
General / Re: CodeBlocks and SFML2.2 issue
« on: December 24, 2014, 07:50:51 am »
Sorry for offtop, but why use non-msvc compilers under Windows? There are no problems to use msvc-compiler in C::B.

79
General discussions / Re: [Android] Call for help building dependecies
« on: December 23, 2014, 11:59:16 am »
Well, I'm a noob too, m.b. a little bit more experienced. =) There are no big problem to build all these targets and then to include to SFML only that needed. I don't like CMake and I don't know it enough to create scripts, I'll create stand-alone .mk files to build libraries.

80
General discussions / Re: [Android] Call for help building dependecies
« on: December 23, 2014, 10:46:38 am »
Regarding the archs, I honestly don't know. What does Android user usually run on?

From Sonkun work, I see that armv7, arm, mips and x86 are supported but maybe it is interesting to extends the set of arch?
I use armv7 only, there is very small part of devices that do not support it. What is MIPS? I don't know! =)
Well, I think to not to think and just take the list of architectures from  the NDK's stl directory, so there are:
  • arm64-v8a
  • armeabi (and thumb)
  • armeabi-v7a (and thumb)
  • armeabi-v7a-hard float (and thumb)
  • mips
  • mips64
  • x86
  • x86_64

81
General discussions / Re: [Android] Call for help building dependecies
« on: December 23, 2014, 09:02:30 am »
I think I can help. But in january, there are will be the holidays in Russia.
armv5, armv7, x86 and mips? 64 bits? arm64-v8? thumb? hard-float/soft-float? What target archs do you need exactly?
And, please, post here the links for sources.

82
SFML projects / Re: [Game] Croger
« 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. =)

83
General discussions / Re: Android and iOS ports available for testing
« on: December 21, 2014, 11:28:24 am »
sf::RenderTexture -  clear({0, 0, 0, 0}); - does not work on Android 4.2. It can't fill with transparent colour, black colour works well.
Well, alpha 128 works too.

I don't know what it was, but it works now.  :o

84
General discussions / Re: SFML 2.2 Released!
« on: December 17, 2014, 10:04:41 am »
it was made because we are lacking manpower for it.
Yes, I know it.
So if you are a mobile developer and would like to contribute, feel free to do so, we'd be happy to get some helping hands.
I'm always glad to share with my code, but this is not enough I know, because my main job is not mobile development. I don't have time to make more now. =(

85
General discussions / Re: SFML 2.2 Released!
« on: December 17, 2014, 08:58:06 am »
It is good, but it is not what I'm awaited for. I thought that ports for mobile OSes will be completed and full. At least shaders minimal support. =( But congrats, anyway! =)

86
SFML projects / Re: [Game] Croger
« 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. =)

87
SFML projects / Re: [Game] Croger
« on: December 16, 2014, 06:41:46 am »
And i had missunderstood your question  ;)
My English is very good for misunderstanding. =)

88
General / Re: Is this a bad programming habit?
« on: December 15, 2014, 08:05:26 pm »
It is not bad.  It is much better than a magic number. "static const" is even better for C++. You can use #define PLAYER_POS 100.0, 300.0 but this C-way. =)
PS But player's position, for me, must be set from config file or script.
PPS Very good book - http://www.amazon.com/Coding-Standards-Rules-Guidelines-Practices/dp/0321113586

89
SFML projects / Re: [Game] Croger
« 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.

90
SFML projects / Re: [Game] Croger
« 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?

Pages: 1 ... 4 5 [6] 7 8 ... 22
anything