Autor Tema: PixTudio Android  (Leído 1270 veces)

Grew

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
PixTudio Android
« en: Febrero 01, 2016, 04:52:02 pm »
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

  • Administrator
  • *****
  • Mensajes: 4039
  • Karma: 257
    • BennuGD Mobile Worklog
Re:PixTudio Android
« Respuesta #1 en: Febrero 01, 2016, 05:05:19 pm »
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.

Hi,


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


Thanks !

Grew

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
Re:PixTudio Android
« Respuesta #2 en: Febrero 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 :
Código: [Seleccionar]
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

  • Administrator
  • *****
  • Mensajes: 2124
  • Karma: 71
    • panreyes.com
Re:PixTudio Android
« Respuesta #3 en: Febrero 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 :)

Grew

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
Re:PixTudio Android
« Respuesta #4 en: Febrero 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.
My game developer instagram :
https://www.instagram.com/ben_dev_game/

josebita

  • Administrator
  • *****
  • Mensajes: 4039
  • Karma: 257
    • BennuGD Mobile Worklog
Re:PixTudio Android
« Respuesta #5 en: Febrero 02, 2016, 09:50:50 am »

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

  • Administrator
  • *****
  • Mensajes: 2124
  • Karma: 71
    • panreyes.com
Re:PixTudio Android
« Respuesta #6 en: Febrero 02, 2016, 09:56:51 am »
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

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
Re:PixTudio Android
« Respuesta #7 en: Febrero 02, 2016, 10:28:42 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.
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

  • Full Member
  • ***
  • Mensajes: 123
  • Karma: 3
Re:PixTudio Android
« Respuesta #8 en: Febrero 04, 2016, 01:19:04 pm »
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.


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

  • Administrator
  • *****
  • Mensajes: 4039
  • Karma: 257
    • BennuGD Mobile Worklog
Re:PixTudio Android
« Respuesta #9 en: Febrero 04, 2016, 01:34:15 pm »
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.


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.