All data files must be in the "tavarat"-directory.
The script file must be called "script.txt".
To comment stuff in your script begin the line with a #

Required in the beginning of your script file:

0.05 - .global

Enables four dimensional reality scanner. REQUIRED!

0.1 - @defaultmode ( width [width in pixels] height [height in pixels] bpp [bits per pixel (16/24/32)] )

Sets default resolution and color depth

0.2 - @viewport ( left [X coordinate] up [Y coordinate] width [Width in pixels] height [height in pixels] )

Sets viewport. left X and up Y define upper left corner and width and height define height of viewport.

0.3	-	@bgcolor ( color [red (0-255)] [green (0-255)] [blue (0-255)])

Defines background color.

0.4 - @music ( name [.mod/.s3m/.xm/.it/.mp3/.ogg file] )

Sets background music

0.5 - @showstats

Shows statistics (framerate etc) in upper left corner.

0.6 - @start ( time [time in seconds] )

Sets start time in seconds.

0.7 - @end ( time [time in seconds] )

Sets ending time in seconds.

0.8	-	.track

Starts playing the demo

____

The actual script file:

1.0 - Syntax

[Time in seconds]	[Layer] [Command + command parameters]

Example:
15		7	image ( name love.jpg alphaname lovealpha.jpg position 100 100 scale 100 50 color 123 255 255 155 )

	Shows love.jpg, with lovealpha.jpg as alpha map, in position 100, 100 with scale 100% X scale and 50% Y scale, ~50% 		transparency and ~39% less blue) when 15 seconds have passed. Uses layer 7 

1.0 - image
Syntax:
[time in seconds] [layer] image ( name [.jpg image file] alphaname [.jpg file (alpha map)] position [X coordinate] [Y coordinate] angle [degrees] scale [X scale percentage] [Y scale percentage] color [transparency (0-255, 255 = no transparency) ] [red (0-255)] [green (0-255)] [blue (0-255)] )

	Shows image file. All parameters except image name, are optional. Time and layer are of course required.
	Default position X center, Y center. Default scale 100 100, default color 255 255 255 255, default angle 0.
	
	Example:
	15		7	image ( name love.jpg alphaname lovealpha.jpg position 100 100 scale 100 50 color 123 255 255 155 )

	Shows love.jpg, with lovealpha.jpg as alpha map, in position 100, 100 with scale 100% X scale and 50% Y scale, ~50% 		transparency and ~39% less blue) when 15 seconds have passed. Uses layer 7 


1.1 - anim 
Syntax:
[time in seconds] [layer] anim (position [X coordinate] [Y coordinate] scale [X scale percentage] [Y scale percentage] color [transparency (0-255, 255 = no transparency) ] [red (0-255)] [green (0-255)] [blue (0-255)]

	Animates image. Affects to previously defined image layer. All parameters are optional. Time and layer are of course 		required.
	
	Example:
	0		10 image ( name love.jpg )
	5		10 anim ( scale 200 200 angle -720 )
	10	10 anim ( scale 100 100 angle 360
	
	Scales love.jpg to 200% and rotates it counter clockwise 720 degrees in 5 seconds and then scales it to normal 100% and rotates it clockwise 320 degrees in next 5 seconds.
	
1.2 - scene
Syntax:
[time in seconds] [layer] scene ( name [.3ds file] camera [camera name] fps [framerate of animation] clearzbuffer )

	Executes .3ds animation. All parameters except clearzbuffer are required.
	
	Example:
	0 	7 scene ( name gay.3ds camera Camera02 fps 500 clearzbuffer )
	
	Shows gay.3ds 500 frames per seconds, clears z-buffer. Loops until stopped.
	
Info about playing .3ds files:
	-You can only use diffuse maps
	-To make sure that rotations work, use TCB Rotation
	-Light don't work, but one omni-light is required
	-Transparency works
	-Experiment, you'll soon find out what works and what doesn't.
	-Use only target cameras.

1.3 - end
Syntax:
[time in seconds] [layer] end

Clears layer. Stops showing images and .3ds animations that use specific layer.
You can only display one image/.3ds animation per layer, so use end to redefine what is shown in specific layer.

1.4 - @basetime [time in seconds]

After this command all script commands are not executed after the time defined here.

	Example:
	@basetime 15
	0		5	image ( name bush.jpg )
	5		5 end
	5		5 image ( name bush2.jpg )
	
	Shows bush.jpg when 15 seconds have passed from the start of the demo. After 20 seconds have passed clears layer and shows bush2.jpg on same layer.
	
        Other commands:
	
	2.0 - @basetime [time in seconds]

This command sets the time after which script commands are executed. Can be used multiple times during your script.

	Example:
	@basetime 15
	0		5	image ( name bush.jpg )
	5		5 end
	5		5 image ( name bush2.jpg )
	
	Shows bush.jpg when 15 seconds have passed from the start of the demo. After 20 seconds have passed clears layer and shows bush2.jpg on same layer.
