I'm feeling pretty good I understood or at least understood enough about the last example. I'll continue to post about things I don't understand here.

A while back I tried to build a game with mostly just the knowledge I had obtained from the lite-c tutorial alone. I'll share a few screen-shots and the unfinished code I was working with.













I don't plan to finish this game because I'm trying to learn as much as I can from the Acknex manual and then build a much better one that is procedural. The more I learn from the manual the more I realize I could have had a much easier time coding.

I believe posting over 3,000 lines of code here might be too much?

The code can be downloaded from zippyshare here:
msf.c


Another question:
A function sample under Functions tab within programming category:

Code:
function vector_add2 (var* sum,var* v1,var* v2)
{
	//calculate the sum of two vectors
	sum[0] = v1[0] + v2[0];
	sum[1] = v1[1] + v2[1];
	sum[2] = v1[2] + v2[2];
}
var vector1[3] = { 1,2,3 };
var vector2[3] = { 4,5,6 };
var vector3[3];
//...
vector_add2 (vector3,vector1,vector2); //vector3 now contains 5,7,9



I understand that different argument types are supported but...
can I pass other argument types at the same time such as

Code:
function vector_add2 (var* sum,var* v1,var* v2,ENTITY* ent,PARTICLE* p) ???
{
	//calculate the sum of two vectors
	sum[0] = v1[0] + v2[0];
	sum[1] = v1[1] + v2[1];
	sum[2] = v1[2] + v2[2];
}
var vector1[3] = { 1,2,3 };
var vector2[3] = { 4,5,6 };
var vector3[3];
//...
vector_add2 (vector3,vector1,vector2); //vector3 now contains 5,7,9


Last edited by kmega00; 10/10/13 20:56.