using C you could create multiple of the same structs in this manner:
struct data
{
int x, y;
};
typedef struct data data;
data ship[10]
and use them in a for loop like this:
int i;
for (i = 0; i < 10; i++)
{
ship[i].x = 1;
ship[i].y = 1;
}
Is there a way to create multiple types and use them in a for loop in Blitz3D just like I used in the example code for a C program?
struct data
{
int x, y;
};
typedef struct data data;
data ship[10]
and use them in a for loop like this:
int i;
for (i = 0; i < 10; i++)
{
ship[i].x = 1;
ship[i].y = 1;
}
Is there a way to create multiple types and use them in a for loop in Blitz3D just like I used in the example code for a C program?