Author Topic: How to create ports?  (Read 4320 times)

wiredbomb0

  • Guest
How to create ports?
« on: February 17, 2011, 05:10:24 am »
Just wanted to know, how exactly do you go about creating a port for a game? I've got a few games that I'm interested in porting to Dingux, however I'm not 100% sure how to do so; Can anyone lend me a hand? Thanks!

zear

  • * Moderator
  • Posts: 2381
Re: How to create ports?
« Reply #1 on: February 17, 2011, 10:39:30 am »
First you need to acquire the source code of the game you want to port. The source needs to be written in a language compilable/executable for Dingux platform (mips Linux): C, C++, python, nLove, bash. The game also needs to be written using libraries available for Dingux, or ones which can be ported to it (so SDL but not openGL or Allegro).
Once you're sure these won't be a problem, you can start porting the game. To do so you download the mips linux toolchain for your host platform and set it up. Then, depending on the language your game is written in you compile the game with mipsel-linux-gcc or mipsel-linux-g++ (for C and C++). You also need to modify the game's code and alter the resolution, button mappings, text strings, and all the stuff that needs to be changed in order for a good port.
Once the binary is built, you test it out and if it's ok, you release your newly ported game.

Tl;dr in order to port a game to Dingux you need:
* game's source code
* basic familiarity with programming
* basic familiarity with linux

It's that simple! ;)

jagotu

  • * Former Staff
  • Posts: 188
Re: How to create ports?
« Reply #2 on: February 17, 2011, 02:48:29 pm »
Development tutorials on dingoo wiki really helped me. http://dingoowiki.com/index.php?title=Development:Tutorials
Sorry guys for not caring about dingoonity lately. It was nice to be with you, and maybe I'll come back, but not now...

 

Post a new topic