Possible to port CPU games on DS

Discussion in 'NDS - Emulation and Homebrew' started by Jakob95, Apr 18, 2009.

Apr 18, 2009
  1. Jakob95
    OP

    Suspended Jakob95 I am the Avatar

    Joined:
    Jan 15, 2009
    Messages:
    4,344
    Location:
    New York City
    Country:
    United States
    I think its possible to port computer games on the DS. Im not talking about big games like Runescape and Maplestory. I mean those little flash games. Like flash games from Miniclip.com. I want to port games like Age Of WAr (http://www.maxgames.com/play/age-of-war.html). I also want to port the game Bubble Trouble on the DS. Is this possible? Is there a program that lets you port the games. If anyone knows how to port those flash games on DS can you do it for me or tell me how?
     
  2. UltraMagnus

    Member UltraMagnus hic sunt dracones

    Joined:
    Aug 2, 2007
    Messages:
    1,967
    Location:
    Portsmouth
    Country:
    United Kingdom
    if you have the source code and its written in a low level language like C, then with a lot of effort its possible.

    get working on it
     
  3. Jakob95
    OP

    Suspended Jakob95 I am the Avatar

    Joined:
    Jan 15, 2009
    Messages:
    4,344
    Location:
    New York City
    Country:
    United States
    Do you know if Bubble Trouble has a low source code? And what about Age of War?
     
  4. omatic

    Member omatic GBAtemp Fan

    Joined:
    Apr 25, 2007
    Messages:
    408
    Location:
    United States
    Country:
    United States
    If the games are in Flash, then it's not in a low level language. In addition, even if it was, you'd need to get the source code from whoever programmed it.

    Before worrying about the level of the source code, just get the source code. Even stuff in high-level languages can be ported to a low-level system like C, it's just harder.

    There is no program that translates a game from one programming language to another (in terms of relevancy to this situation). You're going to have to go through every line of code and change it to meet the requirements of the new language.

    For example, in Java I'd write System.out.println(myStats.toString()), but in C, I'd have to do lots of work to turn myStats from a contained Object to a set of primitive values, and have an operation that will print them all out to the output. Keep in mind that this is just a basic example, it gets a lot more complicated when you involve pointers and memory management, among other things.
     
  5. Jakob95
    OP

    Suspended Jakob95 I am the Avatar

    Joined:
    Jan 15, 2009
    Messages:
    4,344
    Location:
    New York City
    Country:
    United States
    Wow dam I wanted to put Bubble Trouble on DS. And I got the source code. Can anyone do this for me if they know how to do this in 5-10min.
     
  6. Dizzy Doom

    Newcomer Dizzy Doom Advanced Member

    Joined:
    Dec 6, 2008
    Messages:
    82
    Country:
    United States
    Porting an aplication (in this case a game) it's not an easy thing to do, even with the source code, simple aplications could a lot of time to port, because you HAVE to rewrite the sourcecode to work on another platform.
    You would need a lot of time for translating Flash sources to C sources, because Flash is a high-level language (closer to the programmer, thus easier), and C is a low level language (closer to the hardware, thus less user-friendly).
    Another thing to have in mind is that Flash code is interpreted by another aplication while C code is interpreted directly by the processor (through the OS).

    It's not something you can do in 5-10 minutes unless it's a VERY simple program ("hello world", for example).
     
  7. omatic

    Member omatic GBAtemp Fan

    Joined:
    Apr 25, 2007
    Messages:
    408
    Location:
    United States
    Country:
    United States
    You'd also need all the images, sound, and other source libraries being used for the game. If you are able to compile the source code and run it (google it if you need to), then maybe someone can help, and keep in mind that people usually get paid $30/hour+ for doing things like this.
     
  8. saxamo

    Member saxamo Spaaaaace!

    Joined:
    Aug 6, 2006
    Messages:
    775
    Location:
    NYC
    Country:
    United States
    I like this topic. ALOT. I've had my eyes on porting I have no Tomatoes, an open source game in C, that utilizes openGL. I hope more programmers can chime in on what it's like to port a game from C or something not built on the DS, to the DS's platform.

    I personally do not code but I'm hoping that this could give me an opportunity to learn or at least be proud of writing something.
     
  9. Dizzy Doom

    Newcomer Dizzy Doom Advanced Member

    Joined:
    Dec 6, 2008
    Messages:
    82
    Country:
    United States
    If it's on openGL you won't have too much problem, as I believe OpenGL works in a similar way DevkitPro video API does, IF:
    The original system requirements are below the DS's (DS has 4MB RAM and 2 cores of 67 and 33 MHZ, but it has the advantage: an aplication takes over the DS when started, so every resource is yours)
    You know how the program works by looking at the source. What functions it uses and such.
    You know how openGL works or at least how the functions of openGL the program uses work.
    You know the tarjget's system, by that I mean equivalent functions to what the program uses on the original platform.
    And, of course, you need to be patient.

    I think a porting project it's too much as your fist project since you have to know the original platform and the target's. Anyway, understanding other people's sources is a bit tricky, because everyone has their style, but it's a good ability to have.
    C is also a difficult language to start with, but once understand it you'll discover that every language works in a similar way.
     
  10. saxamo

    Member saxamo Spaaaaace!

    Joined:
    Aug 6, 2006
    Messages:
    775
    Location:
    NYC
    Country:
    United States
    Anyway I'm going to try and be diligent on this. I have a new netbook on it's way that I'd like to incorporate a good chunk of learning this stuff into.

    As always, more advice/difficulties/words of wisdom from DS programmers on the general topic is welcome [​IMG]
     

Share This Page