Working on main menu and tutorials
This commit is contained in:
1 parent
0ed7021e90
commit
80133aa8c8
9 files changed
+43
-211
No files matched your search
@@ -28,9 +28,9 @@
|
||||
"meshTextures": {
|
||||
"Girl_Low": "resources/w/girlfriend/Girl_Base_color.png"
|
||||
},
|
||||
"positionX": 0.764049,
|
||||
"positionX": 1.0,
|
||||
"positionY": 0.0,
|
||||
"positionZ": -8.53475,
|
||||
"positionZ": -7.525,
|
||||
"facingAngle" : 180,
|
||||
"walkSpeed": 1.66,
|
||||
"rotationSpeed": 8.0,
|
||||
|
||||
@@ -657,7 +657,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "cutscene_final001",
|
||||
"id": "game_complete_cutscene001",
|
||||
"skippable": true,
|
||||
"durationMs": 5000,
|
||||
"fadeOutMs": 0,
|
||||
|
||||
@@ -1970,203 +1970,5 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"cutscenes": [
|
||||
{
|
||||
"id": "test_cutscene_01",
|
||||
"background": "resources/test_cutscene001.png",
|
||||
"durationMs": 5000,
|
||||
"fadeOutMs": 500,
|
||||
"fadeInMs": 500,
|
||||
"endFadeOutMs": 500,
|
||||
"endFadeInMs": 500,
|
||||
"cameraTrack": [
|
||||
{
|
||||
"durationMs": 3000,
|
||||
"from": {
|
||||
"focusX": 0.3,
|
||||
"focusY": 0.5,
|
||||
"zoom": 1.1,
|
||||
"rotationDeg": 0
|
||||
},
|
||||
"to": {
|
||||
"focusX": 0.7,
|
||||
"focusY": 0.5,
|
||||
"zoom": 1,
|
||||
"rotationDeg": 0
|
||||
},
|
||||
"easing": "EaseInOutSine"
|
||||
},
|
||||
{
|
||||
"durationMs": 3000,
|
||||
"from": {
|
||||
"focusX": 0.3,
|
||||
"focusY": 0.5,
|
||||
"zoom": 1,
|
||||
"rotationDeg": 0
|
||||
},
|
||||
"to": {
|
||||
"focusX": 0.7,
|
||||
"focusY": 0.5,
|
||||
"zoom": 1.1,
|
||||
"rotationDeg": 0
|
||||
},
|
||||
"easing": "EaseInOutCubic"
|
||||
}
|
||||
],
|
||||
"lines": [
|
||||
{
|
||||
"speaker": "Аида Дженибековна",
|
||||
"portrait": "resources/dialogue/portrait_teacher.png",
|
||||
"text": "Здравствуйте, студенты. Кого я вижу, где вы были весь семестр?",
|
||||
"durationMs": 3000
|
||||
},
|
||||
{
|
||||
"speaker": "Аида Дженибековна",
|
||||
"portrait": "resources/dialogue/portrait_teacher.png",
|
||||
"text": "В эпизоде \"Семетей\" трилогии \"Манас\", изменники Канчоро и Кыяз захватывают власть над кыргызами.",
|
||||
"durationMs": 3000
|
||||
},
|
||||
{
|
||||
"speaker": "Аида Дженибековна",
|
||||
"portrait": "resources/dialogue/portrait_teacher.png",
|
||||
"text": "На сегодня лекция завершена. Домашнее задание - к практическому занятию вы должны подготовить презентации, каждый по своей теме.",
|
||||
"durationMs": 2000,
|
||||
"background": "resources/test_cutscene001.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "computer_cutscene001",
|
||||
"onFadeInCallback": "on_sleep_cutscene",
|
||||
"background": "resources/test_cutscene001.png",
|
||||
"durationMs": 5000,
|
||||
"fadeOutMs": 500,
|
||||
"fadeInMs": 500,
|
||||
"endFadeOutMs": 500,
|
||||
"endFadeInMs": 500,
|
||||
"cameraTrack": [
|
||||
{
|
||||
"durationMs": 3000,
|
||||
"from": {
|
||||
"focusX": 0.3,
|
||||
"focusY": 0.5,
|
||||
"zoom": 1.1,
|
||||
"rotationDeg": 0
|
||||
},
|
||||
"to": {
|
||||
"focusX": 0.7,
|
||||
"focusY": 0.5,
|
||||
"zoom": 1,
|
||||
"rotationDeg": 0
|
||||
},
|
||||
"easing": "EaseInOutSine"
|
||||
},
|
||||
{
|
||||
"durationMs": 3000,
|
||||
"from": {
|
||||
"focusX": 0.3,
|
||||
"focusY": 0.5,
|
||||
"zoom": 1,
|
||||
"rotationDeg": 0
|
||||
},
|
||||
"to": {
|
||||
"focusX": 0.7,
|
||||
"focusY": 0.5,
|
||||
"zoom": 1.1,
|
||||
"rotationDeg": 0
|
||||
},
|
||||
"easing": "EaseInOutCubic"
|
||||
}
|
||||
],
|
||||
"lines": [
|
||||
{
|
||||
"speaker": "Бекзат",
|
||||
"portrait": "resources/dialogue/portrait_hero_neutral.png",
|
||||
"text": "Я начал делать презентацию по книге.",
|
||||
"durationMs": 3000
|
||||
},
|
||||
{
|
||||
"speaker": "Бекзат",
|
||||
"portrait": "resources/dialogue/portrait_hero_neutral.png",
|
||||
"text": "Книга была такая скучная что я уснул.",
|
||||
"durationMs": 3000
|
||||
},
|
||||
{
|
||||
"speaker": "Бекзат",
|
||||
"portrait": "resources/dialogue/portrait_hero_neutral.png",
|
||||
"text": "И я проснулся уже ночью",
|
||||
"durationMs": 2000,
|
||||
"background": "resources/test_cutscene001.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "darklands_exit001",
|
||||
"onFadeInCallback": "on_darklands_over",
|
||||
"background": "resources/test_cutscene001.png",
|
||||
"durationMs": 5000,
|
||||
"fadeOutMs": 0,
|
||||
"fadeInMs": 500,
|
||||
"endFadeOutMs": 500,
|
||||
"endFadeInMs": 500,
|
||||
"cameraTrack": [
|
||||
{
|
||||
"durationMs": 3000,
|
||||
"from": {
|
||||
"focusX": 0.3,
|
||||
"focusY": 0.5,
|
||||
"zoom": 1.1,
|
||||
"rotationDeg": 0
|
||||
},
|
||||
"to": {
|
||||
"focusX": 0.7,
|
||||
"focusY": 0.5,
|
||||
"zoom": 1,
|
||||
"rotationDeg": 0
|
||||
},
|
||||
"easing": "EaseInOutSine"
|
||||
},
|
||||
{
|
||||
"durationMs": 3000,
|
||||
"from": {
|
||||
"focusX": 0.3,
|
||||
"focusY": 0.5,
|
||||
"zoom": 1,
|
||||
"rotationDeg": 0
|
||||
},
|
||||
"to": {
|
||||
"focusX": 0.7,
|
||||
"focusY": 0.5,
|
||||
"zoom": 1.1,
|
||||
"rotationDeg": 0
|
||||
},
|
||||
"easing": "EaseInOutCubic"
|
||||
}
|
||||
],
|
||||
"lines": [
|
||||
{
|
||||
"portrait": "resources/dialogue/portrait_hero_neutral.png",
|
||||
"text": "Мгновенно как я упал без сил, что-то сверкнуло.",
|
||||
"durationMs": 3000
|
||||
},
|
||||
{
|
||||
"portrait": "resources/dialogue/portrait_hero_neutral.png",
|
||||
"text": "Я открыл глаза и понял, что я по-прежнему в универе.",
|
||||
"durationMs": 3000
|
||||
},
|
||||
{
|
||||
"portrait": "resources/dialogue/portrait_hero_neutral.png",
|
||||
"text": "Все тело болело, как будто я всю ночь таскал мешки с цементом.",
|
||||
"durationMs": 3000
|
||||
},
|
||||
{
|
||||
"portrait": "resources/dialogue/portrait_hero_neutral.png",
|
||||
"text": "А еще мне сильно хотелось спать...",
|
||||
"durationMs": 2000,
|
||||
"background": "resources/test_cutscene001.png"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -12,12 +12,9 @@ night_time = false
|
||||
|
||||
player_left_darklands = false
|
||||
|
||||
|
||||
morning_can_open_door_index = 0
|
||||
morning_did_open_door_index = 0
|
||||
|
||||
--player_ghost_aware = false
|
||||
|
||||
ghost_gone = false
|
||||
|
||||
function dialog_aiperi_give_key()
|
||||
@@ -171,7 +168,7 @@ function on_npc_interact(npc_index)
|
||||
end
|
||||
end
|
||||
if npc_index == 0 then
|
||||
if (player_ghost_aware) then
|
||||
if (player_ghost_aware == 1) then
|
||||
--game_api.setIntValue("player_has_coursework", 1)
|
||||
local player_has_coursework = game_api.getIntValue("player_has_coursework")
|
||||
local player_has_report_card = game_api.getIntValue("player_has_report_card")
|
||||
@@ -209,6 +206,8 @@ function on_quest_over()
|
||||
game_api.set_npc_enabled(4, false)
|
||||
game_api.set_npc_enabled(5, false)
|
||||
game_api.quest_set_objective_completed("ghost_release", "ghost_release_show")
|
||||
|
||||
game_api.start_cutscene("game_complete_cutscene001")
|
||||
end
|
||||
|
||||
--[[
|
||||
@@ -605,7 +604,7 @@ end
|
||||
|
||||
function on_report_card_pickup()
|
||||
local player_ghost_aware = game_api.getIntValue("ghost_aware")
|
||||
if player_ghost_aware then
|
||||
if player_ghost_aware == 1 then
|
||||
local player_has_report_card = game_api.getIntValue("player_has_report_card")
|
||||
local report_card_signed = game_api.getIntValue("report_card_signed")
|
||||
|
||||
@@ -1077,7 +1076,7 @@ function on_aiperi_opens_door()
|
||||
end
|
||||
|
||||
function on_aiperi_morning_dialog_finished()
|
||||
game_api.npc_walk_to(1, 0.764049, 0, -8.5, nil)
|
||||
game_api.npc_walk_to(1, 0.98998, 0, -7.525, nil)
|
||||
end
|
||||
|
||||
game_api.set_location_callbacks(
|
||||
@@ -1127,6 +1126,12 @@ function debugAllOpen()
|
||||
end
|
||||
|
||||
|
||||
game_api.set_cutscene_callback("game_complete_cutscene001", function()
|
||||
print("---Cutscene done!")
|
||||
game_api.return_to_main_menu()
|
||||
end)
|
||||
|
||||
|
||||
|
||||
setDay0setup()
|
||||
game_api.switch_navigation(0)
|
||||
|
||||
Reference in new issue
Block a user