> 4D Blocks
> Version 6
Scene LanguageThe scripting language used to describe scenes is stack-based, like PostScript or Forth. You can comment and uncomment things in C/C++ style. Brackets are used to define arrays. You can define arrays of any type, but arrays of numbers are especially useful since they can be used to represent geometric points and vectors.
There are enough commands that it's worth dividing them into sections.
The net result should be that the stack contains some shapes and/or a track object and some trains. And maybe also some scenery objects. What's left on the stack is what's displayed inside the game. Note: there's minimal validation, so if you mix 3D and 4D objects on the stack, you may get cryptic errors.