Microsoft Demos Three Platforms Running the Same Game
suraj.sun writes with this excerpt from Engadget:
"Microsoft's Eric Rudder, speaking at TechEd Middle East, showed off a game developed in Visual Studio as a singular project (with 90% shared code) that plays on Windows with a keyboard, a Windows Phone 7 Series prototype device with accelerometer and touch controls, and the Xbox 360 with the Xbox gamepad. Interestingly, not only is the development cross-platform friendly, but the game itself (a simple Indiana Jones platformer was demoed) saves its place and lets you resume from that spot on whichever platform you happen to pick up."
Let's see where to start....
1. If you are writing different libraries for each platform -- that's not 100% code re-use
2. You're not "just distributing" the same binary for each platform.
3. What are you using for graphics, sounds, storage, etc. on each platform?
4. You're doing this without a bunch of #ifdef's?
5. How are you accounting for different screen resolutions, graphics hardware, touch capabilities, and other hardware difference?
I've never programmed games for either the PC or mobile but I do write boring old business apps for Windows Mobile industrial devices. I'm able to target Windows Mobile and take the same app and run it flawlessly on the desktop -- without a recompile.
A simple demo game written on a Fedora system runs perfectly on [other Linux operating systems], but nobody paid for a press conference.
Unless the game was developed using the Allegro library. Distributions that switched to PulseAudio broke sound in Allegro games because PulseAudio does not like unsigned 16-bit PCM.