commit 24c5b34dfde69d9c8d03bdd3e9842ec3f5996bf8 Author: iisaev Date: Mon Oct 19 20:21:00 2026 +0300 init mod diff --git a/locale/en.properties b/locale/en.properties new file mode 100644 index 0000000..6fd29f8 --- /dev/null +++ b/locale/en.properties @@ -0,0 +1,2 @@ +mod_my_novel_game_name = My Novel +mod_my_novel_game_desc = The novel template's own scenes and scenarios: a town with a bar and a home, connected by scene switches. Backgrounds and sound come from the town pack. diff --git a/locale/ru.properties b/locale/ru.properties new file mode 100644 index 0000000..f0e9942 --- /dev/null +++ b/locale/ru.properties @@ -0,0 +1,2 @@ +mod_my_novel_game_name = Моя новелла +mod_my_novel_game_desc = Собственные сцены и сценарии шаблона новеллы: город с баром и домом, связанные переходами между сценами. Фоны и звук берутся из городского пака. diff --git a/locale/scenarios_en.properties b/locale/scenarios_en.properties new file mode 100644 index 0000000..1faec91 --- /dev/null +++ b/locale/scenarios_en.properties @@ -0,0 +1,10 @@ +my_novel/town/intro = Evening town. The street lamps are already lit and a cool draught runs along the cobbles. +my_novel/town/prompt = Where to go? +my_novel/town/opt_bar = Go into the bar +my_novel/town/opt_home = Go back home +my_novel/bar/intro = The bar is warm and noisy, but there is nothing to do here tonight. +my_novel/bar/prompt = What next? +my_novel/bar/opt_town = Back to the town +my_novel/home/intro = It is quiet at home. Nothing here yet — the perfect place for a new story. +my_novel/home/prompt = What next? +my_novel/home/opt_town = Back to the town diff --git a/locale/scenarios_ru.properties b/locale/scenarios_ru.properties new file mode 100644 index 0000000..8506cc8 --- /dev/null +++ b/locale/scenarios_ru.properties @@ -0,0 +1,10 @@ +my_novel/town/intro = Вечерний город. Фонари уже горят, по мостовой тянет прохладой. +my_novel/town/prompt = Куда пойти? +my_novel/town/opt_bar = Зайти в бар +my_novel/town/opt_home = Вернуться домой +my_novel/bar/intro = В баре тепло и шумно, но сегодня здесь нечего делать. +my_novel/bar/prompt = Что дальше? +my_novel/bar/opt_town = Вернуться в город +my_novel/home/intro = Дома тихо. Здесь пока ничего нет — самое место для новой истории. +my_novel/home/prompt = Что дальше? +my_novel/home/opt_town = Вернуться в город diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..f906751 --- /dev/null +++ b/manifest.json @@ -0,0 +1,9 @@ +{ + "id": "my_novel_game", + "name": "My Novel", + "version": "1.0.0", + "author": "ct", + "description": "The novel template's own content: a town where you can go into a bar or back home, and a way back from both. Only scenes, scenarios and text; backgrounds and sound come from town_pack. Rename it after your game (_game) and grow your story from here.", + "category": "story", + "depends": ["shell2d_base>=1", "dialog_base>=1", "audio_base>=1", "town_pack>=1"] +} diff --git a/mod.png b/mod.png new file mode 100644 index 0000000..f7b4a81 Binary files /dev/null and b/mod.png differ diff --git a/scenarios/my_novel_bar.scenario b/scenarios/my_novel_bar.scenario new file mode 100644 index 0000000..53ad21c --- /dev/null +++ b/scenarios/my_novel_bar.scenario @@ -0,0 +1,10 @@ +scene: my_novel_bar +priority: 10 +--- +text "The bar is warm and noisy, but there is nothing to do here tonight." key=my_novel/bar/intro +select "What next?" key=my_novel/bar/prompt +option "Back to the town" key=my_novel/bar/opt_town -> :town + +:town +switch_scene my_novel_town +end diff --git a/scenarios/my_novel_home.scenario b/scenarios/my_novel_home.scenario new file mode 100644 index 0000000..361bde4 --- /dev/null +++ b/scenarios/my_novel_home.scenario @@ -0,0 +1,10 @@ +scene: my_novel_home +priority: 10 +--- +text "It is quiet at home. Nothing here yet — the perfect place for a new story." key=my_novel/home/intro +select "What next?" key=my_novel/home/prompt +option "Back to the town" key=my_novel/home/opt_town -> :town + +:town +switch_scene my_novel_town +end diff --git a/scenarios/my_novel_town.scenario b/scenarios/my_novel_town.scenario new file mode 100644 index 0000000..132cec6 --- /dev/null +++ b/scenarios/my_novel_town.scenario @@ -0,0 +1,18 @@ +scene: my_novel_town +priority: 10 +--- +# The town is the hub: every visit shows the same choice. +text "Evening town. The street lamps are already lit and a cool draught runs along the cobbles." key=my_novel/town/intro +text "Тест" +select "Where to go?" key=my_novel/town/prompt +option "Go into the bar" key=my_novel/town/opt_bar -> :bar +option "Go back home" key=my_novel/town/opt_home -> :home + +:bar +text "Новая реплика" +switch_scene my_novel_bar +end + +:home +switch_scene my_novel_home +end diff --git a/scenes/my_novel_bar.json b/scenes/my_novel_bar.json new file mode 100644 index 0000000..be31f38 --- /dev/null +++ b/scenes/my_novel_bar.json @@ -0,0 +1,5 @@ +{ + "name": "my_novel_bar", + "defaultBackground": "bar/bar", + "defaultAmbient": "bar/bar_ambient" +} diff --git a/scenes/my_novel_home.json b/scenes/my_novel_home.json new file mode 100644 index 0000000..a9055f2 --- /dev/null +++ b/scenes/my_novel_home.json @@ -0,0 +1,5 @@ +{ + "name": "my_novel_home", + "defaultBackground": "home/vestibule", + "defaultAmbient": "" +} diff --git a/scenes/my_novel_town.json b/scenes/my_novel_town.json new file mode 100644 index 0000000..6e05bb1 --- /dev/null +++ b/scenes/my_novel_town.json @@ -0,0 +1,5 @@ +{ + "name": "my_novel_town", + "defaultBackground": "town/town_entry_0", + "defaultAmbient": "" +}