Slashdot Mirror


Platform Independent Gaming?

klocwerk writes "At the game developers conference, Sun is releasing a white paper on their new "Java Games Profile." Their ultimate goal? To have one CD you could pop into an Xbox, a PS2, a Windows machine, or a Linux machine, and play the same game on them all. If they get full support for it I can finally get rid of that windows gaming partition!" Sun's got an article on their site describing what they hope to accomplish.

1 of 452 comments (clear)

  1. The 'G' language is the future of game coding by steveoc · · Score: 0, Offtopic

    The fantastic new 'G' language is the future of game coding.

    'G' runs at speeds comparable to hand-coded assembler.

    According to developers, 'G' is heaps easier to use than Java, since it does
    not require native methods, and the documentation makes no mention of garbage
    collection.

    Here are some examples of complete games written in 'G' :

    ----------------
    Quake clone -

    File: quakeClone.g
    program main (arguments) {

    Game myGame = new Game (Game::FIRST_PERSON_SHOOTER_TYPE);
    myGame->loadMapFile ("myQuakeClone.map");
    myGame->loadCharacterFile ("myQuakeClone.char");
    myGame->loadStoryLine ("myQuakeClone.story");
    myGame->run ();
    }
    ---------------
    Or how is this, a Soldier of Fortune clone written in G

    File: soldierOfFiction.g
    program main (arguments) {

    Game myGame = new Game (Game::FIRST_PERSON_SHOOTER_TYPE);
    myGame->loadMapFile ("mySOFClone.map");
    myGame->loadCharacterFile ("mySOFClone.char");
    myGame->loadStoryLine ("mySOFClone.story");
    myGame->run ();
    }
    ------------------
    Another example of the power of 'G', writing a GrandTourismo clone

    File: grandTourism.g
    program main (arguments) {

    Game myGame = new Game (Game::RACING_SIMULATOR_TYPE);
    myGame->loadMapFile ("Silverstone.map");
    myGame->loadCharacterFile ("DieZweiShumacherTwins.char");
    myGame->loadStoryLine ("formula1_season_2002.story");
    myGame->run ();
    }
    ---------------
    G Allows you to extend games in new and exciting ways, for example
    you can see how well Max Payne compares to Hitman 47 when driving
    hot Honda Civics around the original DukeNukem 3D world ...

    File: wacky_races.g
    program main (arguments) {

    Game myGame = new Game (Game::RACING_SIMULATOR_TYPE || Game::FIRST_PERSON_SHOOTER);
    myGame->loadMapFile ("DukeNukem3D.map");
    myGame->loadCharacterFile ("MaxPayne.char" + "Hitman47.char" + ("FastAndFurious.char" || Game::CAR_FILES));
    myGame->loadStoryLine ("zorak_vs_thundercleese.story");
    myGame->run ();
    }