diff --git a/.gitignore b/.gitignore index 680031d..060b478 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ game/**/*.rpyc *.rpymc *.0rpy +*~ **/log.txt **/errors.txt **/traceback.txt diff --git a/.gitmodules b/.gitmodules index 9ce4cd1..45d90d6 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,3 +22,6 @@ [submodule "game/libs/LazyCondition"] path = game/libs/LazyCondition url = https://gitea.mikan/RenPyStuff/LazyCondition.git +[submodule "game/libs/RenPyMinigames"] + path = game/libs/RenPyMinigames + url = https://gitea.mikan/RenPyStuff/RenPyMinigames.git diff --git a/game/images/events/cg prologue/desktop.jpg b/game/images/events/cg prologue/desktop.jpg new file mode 100644 index 0000000..c5fa16b Binary files /dev/null and b/game/images/events/cg prologue/desktop.jpg differ diff --git a/game/images/sprites/kate/neutral todo.png b/game/images/sprites/kate/neutral todo.png new file mode 100644 index 0000000..cbf4092 Binary files /dev/null and b/game/images/sprites/kate/neutral todo.png differ diff --git a/game/libs/AutoMediaCollector b/game/libs/AutoMediaCollector index 4ee0453..7de6373 160000 --- a/game/libs/AutoMediaCollector +++ b/game/libs/AutoMediaCollector @@ -1 +1 @@ -Subproject commit 4ee0453f81a3567ad5ae4db56b2d313ba2b5c6d4 +Subproject commit 7de637358a20938a0ed7e76f2b4e22adfbec3348 diff --git a/game/libs/PaC b/game/libs/PaC index 34c2fa3..6b7402d 160000 --- a/game/libs/PaC +++ b/game/libs/PaC @@ -1 +1 @@ -Subproject commit 34c2fa3e67d74761f13813b54df6035dc21db4b1 +Subproject commit 6b7402dc894c0bcce0f4caf81f3af7bdffd7fb25 diff --git a/game/libs/RenPyMinigames b/game/libs/RenPyMinigames new file mode 160000 index 0000000..0f0c850 --- /dev/null +++ b/game/libs/RenPyMinigames @@ -0,0 +1 @@ +Subproject commit 0f0c85013f0a79baa0d4a1b0cab8d1bdbb0350a6 diff --git a/game/locations/univercity_coridor/events.rpy b/game/locations/univercity_coridor/events.rpy new file mode 100644 index 0000000..e69de29 diff --git a/game/locations/univercity_coridor/images/background/day.png b/game/locations/univercity_coridor/images/background/day.png new file mode 100644 index 0000000..797ad07 Binary files /dev/null and b/game/locations/univercity_coridor/images/background/day.png differ diff --git a/game/locations/univercity_coridor/images/cafeteria_door/day.png b/game/locations/univercity_coridor/images/cafeteria_door/day.png new file mode 100644 index 0000000..d0333ca Binary files /dev/null and b/game/locations/univercity_coridor/images/cafeteria_door/day.png differ diff --git a/game/locations/univercity_coridor/images/outside_door/day.png b/game/locations/univercity_coridor/images/outside_door/day.png new file mode 100644 index 0000000..33fc011 Binary files /dev/null and b/game/locations/univercity_coridor/images/outside_door/day.png differ diff --git a/game/locations/univercity_coridor/images/teaching_room_door/day.png b/game/locations/univercity_coridor/images/teaching_room_door/day.png new file mode 100644 index 0000000..72ed96d Binary files /dev/null and b/game/locations/univercity_coridor/images/teaching_room_door/day.png differ diff --git a/game/locations/univercity_coridor/location.rpy b/game/locations/univercity_coridor/location.rpy new file mode 100644 index 0000000..764ef38 --- /dev/null +++ b/game/locations/univercity_coridor/location.rpy @@ -0,0 +1,9 @@ +define location univercity_coridor: + + background "location univercity_coridor background_day" + + entity teaching_room_door: + idle_image "location univercity_coridor teaching_room_door_day" + transform hover_brightness(on_hover=.2) + focus_mask True + action PaC.Jump("univercity_teaching_room") diff --git a/game/locations/univercity_teaching_room/events.rpy b/game/locations/univercity_teaching_room/events.rpy new file mode 100644 index 0000000..00f7825 --- /dev/null +++ b/game/locations/univercity_teaching_room/events.rpy @@ -0,0 +1,31 @@ +label univercity_teaching_room: + jump location univercity_teaching_room + +label .point_and_click_tutorial: + + todo "Сказать что можно наводиться и нажимать на предметы чтобы с взаимодействовать с ними" + todo "Можно сделать подсказку" + + show location navigation + +label .quests_tutorial: + + todo "Обьяснение что такое квесты" + todo "Основные - двигают по сюжету." + todo "В зависимости от событий обновляются возможности взаимодействий" + todo "Сейчас попробуйте прогуляться" + + show location navigation + +label .kate: + + show kate neutral todo + + if not LazyCondition.labels.is_seen("prologue.meet_kate"): + jump prologue.meet_kate + else: + jump prologue.kate_ask_3d_printer_searching_toby + + todo "Дефолтная фраза" + + show location navigation \ No newline at end of file diff --git a/game/locations/univercity_teaching_room/images/background/day.png b/game/locations/univercity_teaching_room/images/background/day.png new file mode 100644 index 0000000..f5978b9 Binary files /dev/null and b/game/locations/univercity_teaching_room/images/background/day.png differ diff --git a/game/locations/univercity_teaching_room/images/door/day.png b/game/locations/univercity_teaching_room/images/door/day.png new file mode 100644 index 0000000..1a0ec28 Binary files /dev/null and b/game/locations/univercity_teaching_room/images/door/day.png differ diff --git a/game/locations/univercity_teaching_room/images/kate/day.png b/game/locations/univercity_teaching_room/images/kate/day.png new file mode 100644 index 0000000..77131a4 Binary files /dev/null and b/game/locations/univercity_teaching_room/images/kate/day.png differ diff --git a/game/locations/univercity_teaching_room/location.rpy b/game/locations/univercity_teaching_room/location.rpy new file mode 100644 index 0000000..9c19b2b --- /dev/null +++ b/game/locations/univercity_teaching_room/location.rpy @@ -0,0 +1,29 @@ + +define location univercity_teaching_room: + background "location univercity_teaching_room background_day" + + entity kate: + idle_image "location univercity_teaching_room kate_day" + transform hover_brightness(on_hover=.2) + focus_mask True + is_active_condition LazyCondition.Not(LazyCondition.images.ImageOnLayer("kate")) + action Jump("univercity_teaching_room.kate") + + entity door: + idle_image "location univercity_teaching_room door_day" + transform hover_brightness(on_hover=.2) + focus_mask True + is_active_condition LazyCondition.Field("is_interactive", PaC.Location) + action PaC.Jump("univercity_coridor") + + + event: + condition LazyCondition.labels.NeverSeenLabel("univercity_teaching_room.point_and_click_tutorial") + action Jump("univercity_teaching_room.point_and_click_tutorial") + event: + condition LazyCondition.labels.BetweenLabels( + "prologue.meet_kate", + "univercity_teaching_room.quests_tutorial" + ) + action Jump("univercity_teaching_room.quests_tutorial") + diff --git a/game/locations/univercity_teaching_room/variables.rpy b/game/locations/univercity_teaching_room/variables.rpy new file mode 100644 index 0000000..e69de29 diff --git a/game/scenary/prologue/scenary.rpy b/game/scenary/prologue/scenary.rpy new file mode 100644 index 0000000..0a836c7 --- /dev/null +++ b/game/scenary/prologue/scenary.rpy @@ -0,0 +1,62 @@ +label prologue: + jump prologue.start + +label .start: + + scene cg prologue desktop + + todo """Монолог-экспозиция Итана: кто он (студент последних курсов, генетика, специализация — популяционная и репродуктивная биология), + стажёр в проекте 'Autonomous Closed-Loop Habitat', который направлен на колонизацию космического пространства и полетов к другим планетам. Чем занимается сейчас — дописывает заявку. + + Итан: 'Осталось только вписать себя в соавторы... + + ПРЕДЛОЖИТЬ ИГРОКУ ВПИСАТЬ ИМЯ. По умолчанию — 'Ethan'. Принять любое имя, далее по тексту именно так к нему и обращаются. + + Итан сохраняет документ + + """ + + show location univercity_teaching_room with dissolve + + todo """Видно преподавательскую, Кейт на фоне. + + "Итан: 'Готово. Надо сказать своему руководителю, что я закончил. Вот она как раз поливает цветок + + """ + + + jump location univercity_teaching_room + + + +label .meet_kate: + + todo """ + - "Кейт стоит у стеллажа, тянулась за верхней полкой — блузка задралась, обнажила талию и край лифчика. Когда оборачивается — замечает, что Итан смотрит, чуть поправляет блузку, но не злится, усмехается. Фансервис-момент 1." + + - "Экспозиция: Catherine "Cate" Reeves, 35, доктор наук, экосистемная биология, научный руководитель проекта. Заботливая, гиперопекающая, но уважает автономию." + + - "Кейт: 'Итан, ты закончил? Дай посмотрю... О, прекрасно. Кажется, всё готово для подачи.'" + + - "Разговор о гранте: ответ должен прийти сегодня вечером. Кейт мягко улыбается. 'Если выиграем — это будет наш маленький триумф.'" + + - "Кейт вспоминает: 'Кстати, Итан. 3D-принтер в мастерской бункера снова сломан — мигает красным. Тебе не сложно найти Тоби и попросить его глянуть? Я бы сама, но у меня ещё образцы.'" + + - "АКТИВИРОВАТЬ КВЕСТ fix_3d_printer (со статусом search_toby)." + + - "Кейт: 'Если что — Тоби где-то в здании. Спроси у кого-нибудь из наших, его видели.'" + """ + + hide kate with dissolve + + jump location univercity_teaching_room + +label .kate_ask_3d_printer_searching_toby: + + todo """ + - "Кейт: 'Ну как, нашёл Тоби?'" + - "Итан: 'Сейчас иду искать.'" + + """ + + show location navigation \ No newline at end of file diff --git a/game/scenary/prologue/variables.rpy b/game/scenary/prologue/variables.rpy new file mode 100644 index 0000000..e69de29 diff --git a/game/scenary/script.rpy b/game/scenary/script.rpy index 3e1239b..4423c72 100644 --- a/game/scenary/script.rpy +++ b/game/scenary/script.rpy @@ -1,8 +1,6 @@ label start: - "Game starts here" - - return + jump prologue label splashscreen: diff --git a/game/screens/overlay/say.rpy b/game/screens/overlay/say.rpy index 31a4133..82cf635 100644 --- a/game/screens/overlay/say.rpy +++ b/game/screens/overlay/say.rpy @@ -25,19 +25,11 @@ screen say(who, what): yanchor 1.0 ypos .96 - if who is not None: - - frame: - id "namebox" - xysize (512, 128) - xoffset 50 - yoffset -100 + vbox: + if who is not None: text who: - align (0.5, 0.5) id "who" - color "#FFF" - font gui.fonts.nozhik - text what id "what" + text what id "what" use quick_menu diff --git a/game/screens/popup/notify.rpy b/game/screens/popup/notify.rpy index e313d0d..59b112c 100644 --- a/game/screens/popup/notify.rpy +++ b/game/screens/popup/notify.rpy @@ -25,7 +25,7 @@ screen notify(message): text "[message!tq]": size 47 align (0.5, 0.5) - color gui.accent_color + color gui.colors.accent bold True at gui.transforms.notify_transform diff --git a/game/source/composers.dev/collectors.rpy b/game/source/composers.dev/collectors.rpy index 254b410..45e834f 100644 --- a/game/source/composers.dev/collectors.rpy +++ b/game/source/composers.dev/collectors.rpy @@ -51,6 +51,17 @@ init -498 python hide: layer_composer=AutoMediaCollector.OptionalMovieLayerComposer() ) + AutoMediaCollector.MediaCollector("source/media_init/auto.generated/locations.rpy" + ).set_media_location( + r"locations/(?P[^/]+)/images/" + ).set_common_tag( + r"location" + ).add_layer_logic( + "base", + "(?P[^./]+/[^./]+).(?:jpg|png|jpeg)", + layer_composer=AutoMediaCollector.OptionalMovieLayerComposer() + ) + AutoMediaCollector.MediaCollector("source/media_init/auto.generated/cg.rpy" ).set_media_location( r"images/events/(?P[^./]+)/" diff --git a/game/source/composers.dev/config.rpy b/game/source/composers.dev/config.rpy index 69fd483..1e82183 100644 --- a/game/source/composers.dev/config.rpy +++ b/game/source/composers.dev/config.rpy @@ -2,6 +2,6 @@ init -500 python: AutoMediaCollector.set_delayed_mode(True) tint_matrix_map = [ - ("night", (151, 164, 214)), - ("sunset", (240, 209, 255)), + # ("night", (151, 164, 214)), + # ("sunset", (240, 209, 255)), ] diff --git a/game/source/media_init/characters.rpy b/game/source/media_init/characters.rpy index e69de29..388a608 100644 --- a/game/source/media_init/characters.rpy +++ b/game/source/media_init/characters.rpy @@ -0,0 +1,5 @@ +init: + + define pl = Character("Player") + + define todo = Character("#TODO", what_color="#F00", who_color="#F00") \ No newline at end of file