iOS & Android port advance info

Started by josebita, June 09, 2011, 03:51:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

josebita


josebita

#31
Changes committed to the tree today (today I focused on Android, but some changes are universal):


       
  • mod_multi now returns an absolute position (considering your screen resolution) and for pressure it returns a value between 0 and 255. It still doesn't take rotation or scaling into account.
  • libcurl is now compiled in Android, too.
  • mod_curl integrated into the default Android build.
  • Added another script to automatically fetch FMOD Ex for Android API from fmod.org. I won't be distributing their binaries on the repo.
  • Added a new Android project for the FMOD Ex-enabled build (it's just a placeholder, yet).
Please note that I'm having some trouble with the compilation scripts and I haven't been able to compile the APK today. I'm not in the same computer where I usually code so it might just be a setup issue or maybe I really broke something in the scripts...

josebita

Well, some things in the Android port had stopped working with the latest changes to the SDL code and with my focus to the iOS code.
Now that I've finished my exams, I've been working a bit on getting the Android port to work again:





It's not anything too big. I just wanted to share that code is working, again :)

josebita

I'm releasing a very early preview release of BennuGD for Android here:
http://bennugd-mobile.blogspot.com/2012/03/bennugd-for-android-preview-release.html

Please, report unknown bugs here.

MisterN

Will there be a way to make an app that includes both bennugd and the game itself? Like an app you buy from the app store or whatever?
werg

josebita

Quote from: DoctorN on March 11, 2012, 03:01:22 AM
Will there be a way to make an app that includes both bennugd and the game itself? Like an app you buy from the app store or whatever?
Obviously, yeah. I don't see what point it'd have to have any other way of distribution.

MisterN

Is there a tutorial on your page? google code isnt loading right now on my pc :(
werg

josebita

The link I just posted contains detailed instructons. You'll still need the package from google code, though.

MisterN

thanks! im gonna test this with my samsung galaxy s 4g
werg

josebita

mod_multi for windows: Won't give you multitouch in windows but will allow you to compile games that run in ios&android, where you do have multitouch:
http://code.google.com/p/bennugd-monolithic/downloads/detail?name=bennugd-module-multi-fake_win32.7z

josebita

#40
New post with info and a video showing the current status of the Android port:
http://bennugd-mobile.blogspot.com/2012/07/android-progress.html


[Edit] This is how it'll work: if you don't call set_mode() the screen will be set to your devices default resolution. If you do, then a "virtual" resolution will be set in the center of your screen.
Once your device's resolution has been set, you can retrieve it with:
graphic_info(0, 0, G_WIDTH);
graphic_info(0, 0, G_HEIGHT);
[Edit2] If you want to test the code and report on the results, here you have the apk. It should start on your device's native resolution:
https://www.dropbox.com/s/idii1isnjalvu2t/SDLApp-debug_20120719.apk
[size=78%]If it fails, please attach the result of:[/size]
adb logcat Debug:* SDL:* SDL/APP:* *:S


Thanks for your help

handsource-dyko

I've just tested the package, and it works just fine on a Samsung Galaxy S2, with android 4 ICS.  :)

Just a few questions: Is it possible to support the "back" button and the left menu button?
Also Android 4 has support for usb host devices and gamepads, are these kinds of input devices supported? That would be handy, because I've heard of the http://www.kickstarter.com/projects/ouya/ouya-a-new-kind-of-video-game-console OUYA project that is a proposal for a $100 opensource android based gameconsole. It would be cool if we could support it.


panreyes

Do not doubt it :)


BennuGD will be supported in OUYA no matter what! :D

handsource-dyko


MisterN

All I have is a galaxy s 4g will that work? Also I am wondering a bit about the resolution (because I havent messed with the droid port).

*Does android have the capabilities of allowing a game regardless of the resolution to play on a phone? The Galaxy S 4G's resolution is 800x480, if I were to put my game on it which is 320x240, would the phones resolution be set to that and make everything all weird, or would the game just be scaled on the phone (while still in the proper aspect ratio)
werg