UFO:Alien Invasion
General => User modifications => Topic started by: ptitSeb on August 17, 2013, 08:54:45 pm
-
Hi all,
This little message to inform that I have ported UFO:AI to the OpenPandora. The OpenPandora is an Handheld computer, running ARM linux and with OpenGLES graphics.
I converted renderer to GLES (discarding all shader), and enlarge some small fonts, the OpenPandora aving only a 800x480 screen resolution.
With a swapfile configured, it's run very well (with just some fonts that I have to enlarge more).
The sources (I used stabled 2.4 as my base) are here: https://github.com/ptitSeb/UFO--AI-OpenPandora
And you can find informations on the OpenPandora board here: http://boards.openpandora.org/index.php/topic/14050-ufoalien-invasion/
-
We would be interested in merging stuff into our main tree so that future version would be compatible, too (with hopefully less work)
Could you give us patches or a pull request?
Greetings
Martin
-
I'll try to do a diff tomorrow and post it here :)
Sebastien.
-
great - thanks a lot.
-
So, here is the diff, sorry for the delay.
The new codes is garded between #ifdef, but the Makefiles modification are more of the "hardcoded" type.
All #ifdef HAVE_GLES contain GLES specific code, and with the use of eglport from Pickle, it should even compile with little to no modification on other GLES Linux, like RaspeberryPI or ODROID...
The #ifdef PANDORA are specific pandora modification, mainly keymapping and screen resolution (forcing resolution 800x480 fullscreen, with bigger fonts to make the game readable on the 5" screen).
Hope you can do something with this :)
Sebastien.
-
thanks a lot - a lot of this stuff is no longer needed in 2.5 - because we have gles support in there. i will check into it and try to apply as much as i can from it to the 2.5 codebase. i will also provide a new target openpandora that has all the build flags in it. this way we keep the default.mk and stuff like that tidy.
i would also be interested in whether sdl2 is already working with openpandora - then it should work out of the box with ufoai.
-
Thanks for that :) !
And yes, SDL2 is working on the openpandora. But I haven't use it a lot, just with one game (RickyD), but it works yes.