From 94e6138298c419eb12ec70e440a075b103704b9d Mon Sep 17 00:00:00 2001 From: Sachith Hasaranga Seneviratne Date: Thu, 19 Jun 2014 19:09:51 +0530 Subject: [PATCH] Added current tutorial scripts to new structure --- data/scripts/added_script.as | 11 ----------- data/scripts/{ => tutorial}/collisions.as | 0 data/scripts/tutorial/start.as | 4 ++++ .../triggers.as} | 16 +++++++++++++++- data/scripts/tutorial/update.as | 4 ++++ 5 files changed, 23 insertions(+), 12 deletions(-) delete mode 100644 data/scripts/added_script.as rename data/scripts/{ => tutorial}/collisions.as (100%) create mode 100644 data/scripts/tutorial/start.as rename data/scripts/{tutorial_bananas.as => tutorial/triggers.as} (58%) create mode 100644 data/scripts/tutorial/update.as diff --git a/data/scripts/added_script.as b/data/scripts/added_script.as deleted file mode 100644 index 033dddd5b..000000000 --- a/data/scripts/added_script.as +++ /dev/null @@ -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); -} diff --git a/data/scripts/collisions.as b/data/scripts/tutorial/collisions.as similarity index 100% rename from data/scripts/collisions.as rename to data/scripts/tutorial/collisions.as diff --git a/data/scripts/tutorial/start.as b/data/scripts/tutorial/start.as new file mode 100644 index 000000000..d7350ac6a --- /dev/null +++ b/data/scripts/tutorial/start.as @@ -0,0 +1,4 @@ +void onStart() +{ + +} diff --git a/data/scripts/tutorial_bananas.as b/data/scripts/tutorial/triggers.as similarity index 58% rename from data/scripts/tutorial_bananas.as rename to data/scripts/tutorial/triggers.as index 79413eee4..473237149 100644 --- a/data/scripts/tutorial_bananas.as +++ b/data/scripts/tutorial/triggers.as @@ -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 } + diff --git a/data/scripts/tutorial/update.as b/data/scripts/tutorial/update.as new file mode 100644 index 000000000..8b9cb74cd --- /dev/null +++ b/data/scripts/tutorial/update.as @@ -0,0 +1,4 @@ +void onUpdate() +{ + +}