Made trigger more presentation friendly.
This commit is contained in:
parent
bd4ae93846
commit
0d57bf65ef
@ -97,10 +97,10 @@
|
|||||||
|
|
||||||
<trigger>
|
<trigger>
|
||||||
<name>bla</name>
|
<name>bla</name>
|
||||||
<xPosition>15.0</xPosition>
|
<xPosition>25.0</xPosition>
|
||||||
<yPosition>14.0</yPosition>
|
<yPosition>14.0</yPosition>
|
||||||
<zPosition>0.0</zPosition>
|
<zPosition>5.5</zPosition>
|
||||||
<distance>4.0</distance>
|
<distance>5.0</distance>
|
||||||
<isBiggerThan>false</isBiggerThan>
|
<isBiggerThan>false</isBiggerThan>
|
||||||
<idGreen>1</idGreen>
|
<idGreen>1</idGreen>
|
||||||
<idBlue>5</idBlue>
|
<idBlue>5</idBlue>
|
||||||
|
8
level.cc
8
level.cc
@ -316,7 +316,7 @@ void Level::load() {
|
|||||||
functionPointer = &trigger_function_4;
|
functionPointer = &trigger_function_4;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf("Trigger function could not be found.");
|
printf("Trigger function could not be found.\n");
|
||||||
}
|
}
|
||||||
if (object != 0) {
|
if (object != 0) {
|
||||||
Trigger trigger = Trigger(position, distance, isBigger, object, functionPointer);
|
Trigger trigger = Trigger(position, distance, isBigger, object, functionPointer);
|
||||||
@ -418,7 +418,11 @@ void Level::setSkydomeSize(float size) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Level::trigger_function_0() {
|
void Level::trigger_function_0() {
|
||||||
exit(0);
|
static bool triggered = false;
|
||||||
|
if (!triggered) {
|
||||||
|
printf("Trigger 0 triggered.\n");
|
||||||
|
}
|
||||||
|
triggered = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Level::trigger_function_1() {
|
void Level::trigger_function_1() {
|
||||||
|
Loading…
Reference in New Issue
Block a user