Added current tutorial scripts to new structure

This commit is contained in:
Sachith Hasaranga Seneviratne 2014-06-19 19:09:51 +05:30
parent f86b5f91af
commit 94e6138298
5 changed files with 23 additions and 12 deletions

View File

@ -1,11 +0,0 @@
void onTrigger()
{
displayMessage("This trigger was added by another script");
jumpKartTo( 0, 67.90, 99.49 );
Vec3 a;
Vec3 b;
b=a;
Vec3 c = Vec3();
Vec3 d = Vec3(2,3,4);
printVec3(d);
}

View File

@ -0,0 +1,4 @@
void onStart()
{
}

View File

@ -1,4 +1,17 @@
void onTrigger()
void added_script()
{
displayMessage("This trigger was added by another script");
jumpKartTo( 0, 67.90, 99.49 );
Vec3 a;
Vec3 b;
b=a;
Vec3 c = Vec3();
Vec3 d = Vec3(2,3,4);
printVec3(d);
}
void tutorial_bananas()
{
displayMessage("Bananas! Bananas! Everywhere!");
squashKart(0,35.0); //id of kart,time to squash
@ -8,3 +21,4 @@ void onTrigger()
createTrigger("added_script",0,0,0,30.0); //name,x,y,z,trigger distance
}

View File

@ -0,0 +1,4 @@
void onUpdate()
{
}