Bennu Game Development

English Forums => Platforms => Android => Topic started by: Grew on February 01, 2016, 04:52:02 PM

Title: PixTudio Android
Post by: Grew on February 01, 2016, 04:52:02 PM
Hi,


Can someone give a short instruction about how to compile Android app with PixTudio ?


Thanks !
Title: Re:PixTudio Android
Post by: josebita on February 01, 2016, 05:05:19 PM
Have a look at Pixel's project here:
http://forum.bennugd.org/index.php?topic=4146.0 (http://forum.bennugd.org/index.php?topic=4146.0)
Source code here:
https://bitbucket.org/panreyes/pixtudiopm (https://bitbucket.org/panreyes/pixtudiopm)

It provides a simple tool for exporting PixTudio games to Android.

Also, I'll be updating the https://pixtudio.org (https://pixtudio.org) site with Android info soon, but that'll imply compiling from source at the moment.

Quote from: Grew on February 01, 2016, 04:52:02 PM
Hi,


Can someone give a short instruction about how to compile Android app with PixTudio ?


Thanks !
Title: Re:PixTudio Android
Post by: Grew on February 01, 2016, 08:10:13 PM

Thank you !
Can you explain me why the fpg, fnt, wav, and all the resources must be on different folders ?
My folder hierarchy looks like that :
src >
   main.prg
   > Functions
         > function.prg
         > foo.prg
   > Foo
         > foo.prg
   > Assets
         > foo.fpg
         > foo.fnt

With thie hierarchy, with PixTudio, the generated APK crashes at startup on my Android phone.
The BennuGD android version works fine with this hierarchy.
Title: Re:PixTudio Android
Post by: panreyes on February 01, 2016, 08:44:41 PM
Hi Grew!

In order to make the exportation work, you must add the "assets" folder to "Ajustes generales"\"Carpetas extra a copiar", but the FPGs will only be prepared for Android (gunzipped) if they are in the FPG folder.

Also, if the game compiles and runs correctly, means there's no problem generating the DCB for Android either.

PS: I plan to translate the "PixTudio Project Manager" (previously known as elCompilador) in the near future :)
Title: Re:PixTudio Android
Post by: Grew on February 01, 2016, 10:08:50 PM

Thank you !


It still doesn't works, but I think I will move my FPGs and FNTs to fit to your pattern, it will be easier.
Title: Re:PixTudio Android
Post by: josebita on February 02, 2016, 09:50:50 AM
Quote from: Grew on February 01, 2016, 10:08:50 PM

Thank you !


It still doesn't works, but I think I will move my FPGs and FNTs to fit to your pattern, it will be easier.
Someone else has reported that the latest PixTudio for Android is crashing, too.
I'll have a look at it. Try to avoid calling set_mode in Android, if possible.
Title: Re:PixTudio Android
Post by: panreyes on February 02, 2016, 09:56:51 AM
Quote from: Grew on February 01, 2016, 10:08:50 PM
Thank you !

It still doesn't works, but I think I will move my FPGs and FNTs to fit to your pattern, it will be easier.

I can try to figure the problem out if you want.
Send me your project to panreyesJJJJpanreyes.com (change the JJJJ for a @), or talk to me through Hangouts to that account
Title: Re:PixTudio Android
Post by: Grew on February 02, 2016, 10:28:42 AM
Quote from: josebita on February 02, 2016, 09:50:50 AM
Try to avoid calling set_mode in Android, if possible.
The problem is that my game is a "pixel styled" game with a very low resolution. That's why I have to set de resolution.
Quote from: PiXeL on February 02, 2016, 09:56:51 AM
I can try to figure the problem out if you want.
Send me your project to panreyesJJJJpanreyes.com (change the JJJJ for a @), or talk to me through Hangouts to that account
Thank you to offer me your help! I will try again this night. Maybe you can send me a working test project ? I will be easier for you :).
Title: Re:PixTudio Android
Post by: Grew on February 04, 2016, 01:19:04 PM
Quote from: josebita on February 02, 2016, 09:50:50 AMSomeone else has reported that the latest PixTudio for Android is crashing, too.
I'll have a look at it. Try to avoid calling set_mode in Android, if possible.


After many tries, it still crashes.
My BennuGD Android port works well. What are the differences between the BennuGD template and the PixTudio template ? I saw that there was a different SDLActivity class, what else ?
Title: Re:PixTudio Android
Post by: josebita on February 04, 2016, 01:34:15 PM
Quote from: Grew on February 04, 2016, 01:19:04 PM
Quote from: josebita on February 02, 2016, 09:50:50 AMSomeone else has reported that the latest PixTudio for Android is crashing, too.
I'll have a look at it. Try to avoid calling set_mode in Android, if possible.


After many tries, it still crashes.
My BennuGD Android port works well. What are the differences between the BennuGD template and the PixTudio template ? I saw that there was a different SDLActivity class, what else ?
Well, the code for the engine itself is quite different and the SDLActivity.java files differ quite a bit due to the different SDL versions used.

That said, the current PixTudio code does NOT compile for Android, since I still need to upgrade to SDL 2.0.4.