views:

167

answers:

7

What languages or libraries will I need in order to write a cross-platform game? Can I just build one game that will work on all platforms, or must I recompile for each platform?

+5  A: 

C++ with a multi-platform library like SDL.

Kurt
So i must re-compile right?
Snoob
On each platform? Generally yes, or look into cross-compilation.
Kurt
@Kurt Cross-compilation involves recompiling.
Axel
Thanks, i knew what i need to learn (bad grammar lol)
Snoob
+1  A: 

Ultimately an web based game, as all platforms allow browsing internet, if you need somethign more powerfull i would go for Java, and if you really want a powerful lgame (3d engine etc) C++.

LnDCobra
+6  A: 

For a simple game, Python with Pygame.

For a large-scale or performance-intensive game, C++ is the most popular choice.

Justin Ardini
+2  A: 

Well, that really depends what kind of game you want to write. You could use C++ and reompile or Java in what you can write 3d accelerated games as well. You could make it a Flash game that runs in the browser and so on.

Tim Büthe
+2  A: 

Java + JOGL (OpenGL bindings) or Java3D. Quake has been ported to this combination. see http://jogamp.org/

Emyr
+1  A: 

JavaScript with the new Canvas element is a very mighty tool.

codymanix
+1  A: 

Have a look at PuppyGames - they make some very cool arcade games in JavaWebStart.

Rich