gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Porting Flash Games to the DS

#108310 - DtotheG - Tue Nov 07, 2006 6:24 pm

If I want to port a Flash game to the DS, (this one: http://www.newgrounds.com/portal/view/270585) how would I do that? I really love it and would like to play it wherever I go...

#108333 - Sausage Boy - Tue Nov 07, 2006 9:19 pm

You can't port a game directly, as flash and the DS are very different platforms. You'll have to code your own version from scratch, and if you're lucky, the authors may let you use their graphics.
_________________
"no offense, but this is the gayest game ever"

#108367 - DtotheG - Wed Nov 08, 2006 3:55 am

Sausage Boy wrote:
You can't port a game directly, as flash and the DS are very different platforms. You'll have to code your own version from scratch, and if you're lucky, the authors may let you use their graphics.


Damn, so is there any DS coding Platform that's similar to Flash? Or any code that would help out?

#108378 - OOPMan - Wed Nov 08, 2006 9:25 am

Erm, no, not really...

Most DS code is C, with some C++ floating about here and there...

I don't believe Flash is C-based at all...
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI

You can find my NDS homebrew projects here...

#108394 - jenswa - Wed Nov 08, 2006 1:37 pm

Most flash games are actionscript based. Which is slightly familiar with c. I has if functions, for and while loops, t++ operator works, etc..

But flash movies are mostly timeline based, which can be used to move a sprite around the frame by tweening. Or the sprite can be moved around the frame with actionscript like xpos++.

But the engine definitely requires to be rewritten to work on the ds, even if you've the source code, although that would make it easier because you can just use the actionscript routines with a slight change, instead of a big rewrite.

But loading sprites, backgrounds and other objects have to be taken care of by yourself instead of flash doing that.
_________________
It seems this wasn't lost after all.

#108402 - OOPMan - Wed Nov 08, 2006 3:09 pm

Yeah, but most langs have if,else stuff, for/while stuff and increment/decrement operators...

Jenswa, I think what you may be trying to say that it's possible to derive pseudo-code from the ActionScript code and turn that into C/C++ code.

Given that numerous AS functions probably have no direct counterparts in C, though, just copy-and-pasting the source and hacking it about would probably be unwise...
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI

You can find my NDS homebrew projects here...