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