PixTudio Android

Started by Grew, February 01, 2016, 04:52:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Grew

Hi,


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


Thanks !
My game developer instagram :
https://www.instagram.com/ben_dev_game/

josebita

Have a look at Pixel's project here:
http://forum.bennugd.org/index.php?topic=4146.0
Source code here:
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 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 !

Grew


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.
My game developer instagram :
https://www.instagram.com/ben_dev_game/

panreyes

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 :)

Grew


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.
My game developer instagram :
https://www.instagram.com/ben_dev_game/

josebita

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.

panreyes

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

Grew

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 :).
My game developer instagram :
https://www.instagram.com/ben_dev_game/

Grew

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 ?
My game developer instagram :
https://www.instagram.com/ben_dev_game/

josebita

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.