Basic Coding broken down (haven't had time to write a full step by step yet just a draft base of stuff ive found)
Its similar to C so if u have Color Syntax color set it to C/C++ (Scite can do this)
NOT COVERED YET (a lot of thigns)
Noticable - the advance GFX stuff and GL
and arrays and how to use textures and maps
Types
* Texture
* float
* int
* Map
Vortex Scripting also supports const so
const int MAXR = 500;
Define varibles can be done by
Texture mytex;
float varname;
int x,y,z;
int g = 5;
Map mymap;
Maths
+ Addition (5+3 will give 8)
- Subtraction (5-3 will give 2)
* Multiplcation (2*4 will give 8)
=
+= (means left = left + right
-= (means left = left - right)
Cos(x) << not sure if its in degress or radians
Sin(x)
Rand()*10 << i expect this choses random number from 0 to 10
Rand() << this i expect chooses float from 0 to 1 (not sure how exact thou give it a shot)
Where time and TIMEPASS are both intergers
time += TIMEPASS*10;
this is the smae as time = time + TIMEPASS*10
Functions can be defined with or without argv so
void functionname()
{
}
OR
void functionname(float x, int y, Texturesz)
{
STUFF IN HERE
}
ABOUT THE TEXTURE TYPE
Texture texture2;
texture2.LoadTexture("mytexture.png");
So in Vortex\Textures you would put your mytexture.png
So Texture type has the function LoadTexture(filename);
REQUIRED FUNCTIONS
void Init()
{
// Stuff here
// I reckommend loading textures here
}
void Render()
{
// Stuff here
// I reckommend loading textures here
}
TO KEEP UP WITH STANDARDS
make the first 3 files
// example.vtx
// Author - Authourname here
// Based on Blah by authour of blah (only if it is based on something :D)