View Poll Results: XML in Games

Voters
10. You may not vote on this poll
  • Works well. I've used in the past.

    1 10.00%
  • Probably would work well. Never used in gaming b4

    0 0%
  • It'd work, but not the greatest scripting option

    0 0%
  • Use a mixture of a scripting language and XML

    0 0%
  • Stupid Idea

    2 20.00%
  • Maybe use a XML clone, but not the true thing

    0 0%
  • What's XML?

    5 50.00%
  • Good for data, but wouldn't suffice for all scripting

    2 20.00%

Thread: XML In Games

  1. #1

    XML In Games

    I was thinking about doing my scripting for my next game in XML. It is going to be an ORPG. I was just wondering what you guys think of using XML for games.

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    xml is great for storing data but im not exactly sure what you mean by "scritpting" your game in XML. its a markup language, not a scripting language.

  3. #3
    Here is an example of an explosion

    Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <GameEvent>
    <Name>Explosion</Name>
    <Color>
    <Vertex>0xFF00FF00</Vertex>
    <Vertex>0xFFFF00FF</Vertex>
    <Vertex>0xFFFFFFFF</Vertex>
    <Vertex>0xFFFFFFFF</Vertex>
    </Color>
    <Sound>Exp1.wav</Sound>
    <Animation>\Explosion</Animation>
    </GameEvent>
    Which does not neccessarily NEED XML, but I want to make it to where people can add in and script stuff with only knowing a few things (such as all events happen with GameEvent, color is Color, etc.)

    What I am thinking about doing though is have a regular scripting engine, then all effects, special events, etc. will be in seperate XML files, and the script will sort of "link" to them.

    PS: I voted on "Good for data, but wouldn't suffice for all scripting". Although, I have thought of ways to make it into a pure scripting solution. It will be a pain though.

  4. #4
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    i use it for "scripting" in my "bot" thingy

    http://www.users.cloud9.net/~khalid/nabeel/projects.php

    the last one. it makes things much easier

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. When done right, PC games are amazing
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 08-13-2008, 05:32 PM
  2. XML and data exchange
    By seexml in forum C Programming
    Replies: 0
    Last Post: 04-27-2006, 03:02 PM
  3. Violent video games?
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 58
    Last Post: 04-26-2006, 01:43 PM
  4. Video Games Industry. 5 years left.
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 12-10-2002, 10:52 PM