Scripting games

This is a discussion on Scripting games within the Game Programming forums, part of the General Programming Boards category; What's the best way to write a script engine? ( I mean the engine should understand scripts written in .dat ...

  1. #1
    Registered User LogicError's Avatar
    Join Date
    Aug 2003
    Location
    г. Магнитогорск
    Posts
    76

    Scripting games

    What's the best way to write a script engine? ( I mean the engine should understand scripts written in .dat files, like LoadMap(map1.map), Pos(2,3) and that stuff ) .. And which functions should I think about before starting to write the engine?

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    There is no "best way". Do what is neccessary for your game. I personally like a Lisp/Scheme like syntax. Parsing is very easy thanks to the parantheses and all statements/operators have the same syntax: (OP ARG1 ARG2 ... ARGn)
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

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. Violent video games?
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 58
    Last Post: 04-26-2006, 01:43 PM
  3. Video Games Industry. 5 years left.
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 12-10-2002, 09:52 PM
  4. Starting games - books? api?
    By SeanMSimonsen in forum Game Programming
    Replies: 22
    Last Post: 11-27-2002, 08:09 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21