------------------------------------------------------------------------------

Dismount Levels Script Upgrade Instructions
-------------------------------------------

This text document gives short instructions on upgrading the level script
(.as) files for newer version(s) of the game. This text file assumes that you
read the scriptAPI.txt for more verbose description of API itself.


Web References
--------------

Regarding any syntax changes in the scripting language, it is recommended that
you read information about that from the AngelScript web site.

AngelScript Web Site:
    http://www.angelcode.com/angelscript/
Script Writer's manual:
    http://www.angelcode.com/angelscript/scriptmanual/index.html


Necessary Changes from 0.3.1 to 0.4.0
-------------------------------------

* Define game version which the script is originally written for:
  const int SCRIPT_GAME_VERSION = int(0x000400); // for version 0.4.0

* (Optional) You can require that game is at least certain version:
  requireGameVersion(SCRIPT_GAME_VERSION);

* Remove any references to GameApp and PhysicsWorld classes. Methods of
  GameApp and PhysicsWorld classes have been moved to global functions.
  For example:
      GameApp *app = getGameApp();
      mediumFont = app->getFont("medium");
      PhysicsWorld *pw = app->getPhysicsWorld();
      pw->setGravity(0, 0, -0.5);
  is changed to:
      mediumFont = getFont("medium");
      setGravity(0, 0, -0.5);



------------------------------------------------------------------------------
$Id: scriptUpgrade.txt,v 1.1 2004/11/09 21:33:45 tonic Exp $
$Revision: 1.1 $
------------------------------------------------------------------------------
