project-navigation
Personal tools

Author Topic: Port of UFO:AI to the OpenPandora  (Read 4157 times)

Offline ptitSeb

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Port of UFO:AI to the OpenPandora
« 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/

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Port of UFO:AI to the OpenPandora
« Reply #1 on: August 17, 2013, 10:34:39 pm »
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

Offline ptitSeb

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Port of UFO:AI to the OpenPandora
« Reply #2 on: August 17, 2013, 10:47:26 pm »
I'll try to do a diff tomorrow and post it here :)

Sebastien.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Port of UFO:AI to the OpenPandora
« Reply #3 on: August 17, 2013, 10:53:44 pm »
great - thanks a lot.

Offline ptitSeb

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Port of UFO:AI to the OpenPandora
« Reply #4 on: August 27, 2013, 10:50:40 am »
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.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Port of UFO:AI to the OpenPandora
« Reply #5 on: August 27, 2013, 04:16:38 pm »
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.

Offline ptitSeb

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Port of UFO:AI to the OpenPandora
« Reply #6 on: August 27, 2013, 05:05:24 pm »
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.