Bug fixing
This commit is contained in:
parent
c6bd5385e3
commit
2195542974
@ -7,9 +7,75 @@
|
|||||||
{
|
{
|
||||||
"id": "line_1",
|
"id": "line_1",
|
||||||
"type": "Line",
|
"type": "Line",
|
||||||
"speaker": "Ghost",
|
"speaker": "Милиция",
|
||||||
"portrait": "resources/ghost_avatar.png",
|
"portrait": "resources/ghost_avatar.png",
|
||||||
"text": "Автомобиль 877 остановитесь немедленно!",
|
"text": "Автомобиль 256 остановитесь немедленно!",
|
||||||
|
"next": "end_1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "end_1",
|
||||||
|
"type": "End"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "dialogue_gas1",
|
||||||
|
"start": "line_1",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"id": "line_1",
|
||||||
|
"type": "Line",
|
||||||
|
"speaker": "Игрок",
|
||||||
|
"portrait": "resources/w/gg/gg2_s_podsvetkoy5.png",
|
||||||
|
"text": "Первая колонка, полный бак пожалуйста.",
|
||||||
|
"next": "line_2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "line_2",
|
||||||
|
"type": "Line",
|
||||||
|
"speaker": "Кассир",
|
||||||
|
"portrait": "resources/ghost_avatar.png",
|
||||||
|
"text": "[Смотрит подозрительно]",
|
||||||
|
"next": "line_3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "line_3",
|
||||||
|
"type": "Line",
|
||||||
|
"speaker": "Игрок",
|
||||||
|
"portrait": "resources/w/gg/gg2_s_podsvetkoy5.png",
|
||||||
|
"text": "Что вы на меня так смотрите, со мной что-то не так?",
|
||||||
|
"next": "line_4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "line_4",
|
||||||
|
"type": "Line",
|
||||||
|
"speaker": "Кассир",
|
||||||
|
"portrait": "resources/ghost_avatar.png",
|
||||||
|
"text": "Нет-нет, все хорошо.",
|
||||||
|
"next": "line_5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "line_5",
|
||||||
|
"type": "Line",
|
||||||
|
"speaker": "Кассир",
|
||||||
|
"portrait": "resources/ghost_avatar.png",
|
||||||
|
"text": "Говорите, первая колонка, да?",
|
||||||
|
"next": "line_6"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "line_6",
|
||||||
|
"type": "Line",
|
||||||
|
"speaker": "Игрок",
|
||||||
|
"portrait": "resources/w/gg/gg2_s_podsvetkoy5.png",
|
||||||
|
"text": "Да.",
|
||||||
|
"next": "line_7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "line_7",
|
||||||
|
"type": "Line",
|
||||||
|
"speaker": "Кассир",
|
||||||
|
"portrait": "resources/ghost_avatar.png",
|
||||||
|
"text": "Вот, пожалуйста. Приходите к нам еще!",
|
||||||
"next": "end_1"
|
"next": "end_1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -25,16 +91,16 @@
|
|||||||
{
|
{
|
||||||
"id": "line_1",
|
"id": "line_1",
|
||||||
"type": "Line",
|
"type": "Line",
|
||||||
"speaker": "Ghost",
|
"speaker": "Игрок",
|
||||||
"portrait": "resources/ghost_avatar.png",
|
"portrait": "resources/w/gg/gg2_s_podsvetkoy5.png",
|
||||||
"text": "Ну капец, мы застряли!",
|
"text": "Ну капец, мы застряли!",
|
||||||
"next": "line_2"
|
"next": "line_2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "line_2",
|
"id": "line_2",
|
||||||
"type": "Line",
|
"type": "Line",
|
||||||
"speaker": "Ghost",
|
"speaker": "Игрок",
|
||||||
"portrait": "resources/ghost_avatar.png",
|
"portrait": "resources/w/gg/gg2_s_podsvetkoy5.png",
|
||||||
"text": "Теперь только пешком.",
|
"text": "Теперь только пешком.",
|
||||||
"next": "end_1"
|
"next": "end_1"
|
||||||
},
|
},
|
||||||
@ -51,8 +117,8 @@
|
|||||||
{
|
{
|
||||||
"id": "line_1",
|
"id": "line_1",
|
||||||
"type": "Line",
|
"type": "Line",
|
||||||
"speaker": "Ghost",
|
"speaker": "Игрок",
|
||||||
"portrait": "resources/ghost_avatar.png",
|
"portrait": "resources/w/gg/gg2_s_podsvetkoy5.png",
|
||||||
"text": "Все, приехали! Машина в хлам!",
|
"text": "Все, приехали! Машина в хлам!",
|
||||||
"next": "end_1"
|
"next": "end_1"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -144,7 +144,8 @@ namespace ZL
|
|||||||
|
|
||||||
std::cout << "Load resurces step 4" << std::endl;
|
std::cout << "Load resurces step 4" << std::endl;
|
||||||
|
|
||||||
currentLocation = std::make_unique<Location>(renderer, inventory, "default");
|
//currentLocation = std::make_unique<Location>(renderer, inventory, "default");
|
||||||
|
currentLocation = std::make_unique<Location>(renderer, inventory, "forest");
|
||||||
|
|
||||||
currentLocation->setup();
|
currentLocation->setup();
|
||||||
|
|
||||||
@ -513,7 +514,7 @@ namespace ZL
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SDLK_f:
|
case SDLK_f:
|
||||||
currentLocation->dialogueSystem.startDialogue("driving_dialogue1");
|
currentLocation->dialogueSystem.startDialogue("dialogue_gas1");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SDLK_e:
|
case SDLK_e:
|
||||||
|
|||||||
@ -1209,7 +1209,7 @@ void Location::setup()
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
if (x > 0.5)
|
//if (x > 0.5)
|
||||||
{
|
{
|
||||||
target = carPosition;
|
target = carPosition;
|
||||||
Eigen::Vector3f toTarget = target - npcCar.position;
|
Eigen::Vector3f toTarget = target - npcCar.position;
|
||||||
@ -1235,10 +1235,10 @@ void Location::setup()
|
|||||||
}
|
}
|
||||||
hasTarget = dist > 0.5f;
|
hasTarget = dist > 0.5f;
|
||||||
}
|
}
|
||||||
else
|
/*else
|
||||||
{
|
{
|
||||||
throttle = 0.f;
|
throttle = 0.f;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
float targetHeading = npcCar.rotation;
|
float targetHeading = npcCar.rotation;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user