Car logic, dialog logic

This commit is contained in:
Vladislav Khorev committed 2026-04-18 22:15:34 +03:00
1 parent 0d7d430909
commit abd3da30e2
14 files changed
+709 -142

No files matched your search

+11
View File
@@ -113,6 +113,17 @@
[1, -5.5],
[-0.2, -5.5]
]
},
},
{
"name": "main_corridor10x",
"available": true,
"polygon": [
[-100, -100],
[100, -100],
[100, 100],
[-100, 100]
]
},
{
"name": "main_corridor",
+104
View File
@@ -1,5 +1,109 @@
{
"dialogues": [
{
"id": "driving_dialogue1",
"start": "line_1",
"nodes": [
{
"id": "line_1",
"type": "Line",
"speaker": "Ghost",
"portrait": "resources/ghost_avatar.png",
"text": "Автомобиль 877 остановитесь немедленно!",
"next": "end_1"
},
{
"id": "end_1",
"type": "End"
}
]
},
{
"id": "driving_dialogue_offroad",
"start": "line_1",
"nodes": [
{
"id": "line_1",
"type": "Line",
"speaker": "Ghost",
"portrait": "resources/ghost_avatar.png",
"text": "Ну капец, мы застряли!",
"next": "line_2"
},
{
"id": "line_2",
"type": "Line",
"speaker": "Ghost",
"portrait": "resources/ghost_avatar.png",
"text": "Теперь только пешком.",
"next": "end_1"
},
{
"id": "end_1",
"type": "End"
}
]
},
{
"id": "driving_dialogue_crash",
"start": "line_1",
"nodes": [
{
"id": "line_1",
"type": "Line",
"speaker": "Ghost",
"portrait": "resources/ghost_avatar.png",
"text": "Все, приехали! Машина в хлам!",
"next": "end_1"
},
{
"id": "end_1",
"type": "End"
}
]
},
{
"id": "driving_dialogue2",
"start": "line_1",
"nodes": [
{
"id": "line_1",
"type": "Line",
"speaker": "Ghost",
"portrait": "resources/ghost_avatar.png",
"text": "Наконец-то ты пришел.",
"next": "line_2"
},
{
"id": "line_2",
"type": "Line",
"speaker": "Hero",
"portrait": "resources/w/gg/gg2_s_podsvetkoy5.png",
"text": "Ты сделан из дыма?",
"next": "line_3"
},
{
"id": "line_3",
"type": "Line",
"speaker": "Ghost",
"portrait": "resources/ghost_avatar.png",
"text": "Ты думаешь, это смешно?",
"next": "line_4"
},
{
"id": "line_4",
"type": "Line",
"speaker": "Hero",
"portrait": "resources/w/gg/gg2_s_podsvetkoy5.png",
"text": "Я думаю что ты пахнешь как выхлоп от Камаза.",
"next": "end_1"
},
{
"id": "end_1",
"type": "End"
}
]
},
{
"id": "test_line_dialogue",
"start": "line_1",
Binary file not shown.
+37
View File
@@ -0,0 +1,37 @@
===Vertices (Split by UV/Normal): 16
V 0: Pos(-200.0, -200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(0.0, 1.0)
V 1: Pos(-66.666664, -200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(0.0, 0.666667)
V 2: Pos(-66.666664, -66.666664, 0.0) Norm(0.0, 0.0, 1.0) UV(0.333333, 0.666667)
V 3: Pos(-200.0, -66.666664, 0.0) Norm(0.0, 0.0, 1.0) UV(0.333333, 1.0)
V 4: Pos(66.666672, -200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(0.0, 0.333333)
V 5: Pos(66.666672, -66.666664, 0.0) Norm(0.0, 0.0, 1.0) UV(0.333333, 0.333333)
V 6: Pos(200.0, -200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(0.0, 0.0)
V 7: Pos(200.0, -66.666664, 0.0) Norm(0.0, 0.0, 1.0) UV(0.333333, 0.0)
V 8: Pos(-66.666664, 66.666672, 0.0) Norm(0.0, 0.0, 1.0) UV(0.666667, 0.666667)
V 9: Pos(-200.0, 66.666672, 0.0) Norm(0.0, 0.0, 1.0) UV(0.666667, 1.0)
V 10: Pos(66.666672, 66.666672, 0.0) Norm(0.0, 0.0, 1.0) UV(0.666667, 0.333333)
V 11: Pos(200.0, 66.666672, 0.0) Norm(0.0, 0.0, 1.0) UV(0.666667, 0.0)
V 12: Pos(-66.666664, 200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(1.0, 0.666667)
V 13: Pos(-200.0, 200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(1.0, 1.0)
V 14: Pos(66.666672, 200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(1.0, 0.333333)
V 15: Pos(200.0, 200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(1.0, 0.0)
===Triangles (Indices): 18
Tri: 0 1 2
Tri: 0 2 3
Tri: 1 4 5
Tri: 1 5 2
Tri: 4 6 7
Tri: 4 7 5
Tri: 3 2 8
Tri: 3 8 9
Tri: 2 5 10
Tri: 2 10 8
Tri: 5 7 11
Tri: 5 11 10
Tri: 9 8 12
Tri: 9 12 13
Tri: 8 10 14
Tri: 8 14 12
Tri: 10 11 15
Tri: 10 15 14
+37
View File
@@ -0,0 +1,37 @@
===Vertices (Split by UV/Normal): 16
V 0: Pos(-200.0, -200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(0.0, 0.0)
V 1: Pos(-66.666664, -200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(0.333333, 0.0)
V 2: Pos(-66.666664, -66.666664, 0.0) Norm(0.0, 0.0, 1.0) UV(0.333333, 0.333333)
V 3: Pos(-200.0, -66.666664, 0.0) Norm(0.0, 0.0, 1.0) UV(0.0, 0.333333)
V 4: Pos(66.666672, -200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(0.666667, 0.0)
V 5: Pos(66.666672, -66.666664, 0.0) Norm(0.0, 0.0, 1.0) UV(0.666667, 0.333333)
V 6: Pos(200.0, -200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(1.0, 0.0)
V 7: Pos(200.0, -66.666664, 0.0) Norm(0.0, 0.0, 1.0) UV(1.0, 0.333333)
V 8: Pos(-66.666664, 66.666672, 0.0) Norm(0.0, 0.0, 1.0) UV(0.333333, 0.666667)
V 9: Pos(-200.0, 66.666672, 0.0) Norm(0.0, 0.0, 1.0) UV(0.0, 0.666667)
V 10: Pos(66.666672, 66.666672, 0.0) Norm(0.0, 0.0, 1.0) UV(0.666667, 0.666667)
V 11: Pos(200.0, 66.666672, 0.0) Norm(0.0, 0.0, 1.0) UV(1.0, 0.666667)
V 12: Pos(-66.666664, 200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(0.333333, 1.0)
V 13: Pos(-200.0, 200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(0.0, 1.0)
V 14: Pos(66.666672, 200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(0.666667, 1.0)
V 15: Pos(200.0, 200.0, 0.0) Norm(0.0, 0.0, 1.0) UV(1.0, 1.0)
===Triangles (Indices): 18
Tri: 0 1 2
Tri: 0 2 3
Tri: 1 4 5
Tri: 1 5 2
Tri: 4 6 7
Tri: 4 7 5
Tri: 3 2 8
Tri: 3 8 9
Tri: 2 5 10
Tri: 2 10 8
Tri: 5 7 11
Tri: 5 11 10
Tri: 9 8 12
Tri: 9 12 13
Tri: 8 10 14
Tri: 8 14 12
Tri: 10 11 15
Tri: 10 15 14
+9
View File
@@ -0,0 +1,9 @@
===Vertices (Split by UV/Normal): 4
V 0: Pos(-50.0, -50.0, 0.0) Norm(0.0, 0.0, 1.0) UV(0.0, 0.0)
V 1: Pos(50.0, -50.0, 0.0) Norm(0.0, 0.0, 1.0) UV(1.0, 0.0)
V 2: Pos(50.0, 50.0, 0.0) Norm(0.0, 0.0, 1.0) UV(1.0, 1.0)
V 3: Pos(-50.0, 50.0, 0.0) Norm(0.0, 0.0, 1.0) UV(0.0, 1.0)
===Triangles (Indices): 2
Tri: 0 1 2
Tri: 0 2 3