diff --git a/.vs/VNgame/FileContentIndex/70963865-7ff3-4184-a951-9bc292b5bea6.vsidx b/.vs/VNgame/FileContentIndex/70963865-7ff3-4184-a951-9bc292b5bea6.vsidx deleted file mode 100644 index c3051b4..0000000 Binary files a/.vs/VNgame/FileContentIndex/70963865-7ff3-4184-a951-9bc292b5bea6.vsidx and /dev/null differ diff --git a/.vs/VNgame/FileContentIndex/933de226-7565-40f6-8c8d-162b1d1f48d7.vsidx b/.vs/VNgame/FileContentIndex/933de226-7565-40f6-8c8d-162b1d1f48d7.vsidx deleted file mode 100644 index fdb357e..0000000 Binary files a/.vs/VNgame/FileContentIndex/933de226-7565-40f6-8c8d-162b1d1f48d7.vsidx and /dev/null differ diff --git a/.vs/VNgame/FileContentIndex/read.lock b/.vs/VNgame/FileContentIndex/read.lock deleted file mode 100644 index e69de29..0000000 diff --git a/.vs/VNgame/v17/.suo b/.vs/VNgame/v17/.suo deleted file mode 100644 index 47d7825..0000000 Binary files a/.vs/VNgame/v17/.suo and /dev/null differ diff --git a/.vs/VNgame/v17/workspaceFileList.bin b/.vs/VNgame/v17/workspaceFileList.bin deleted file mode 100644 index 397d963..0000000 Binary files a/.vs/VNgame/v17/workspaceFileList.bin and /dev/null differ diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json deleted file mode 100644 index dea92d8..0000000 --- a/.vs/VSWorkspaceState.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "ExpandedNodes": [ - "" - ], - "SelectedNode": "\\Program.cs", - "PreviewInSolutionExplorer": false -} \ No newline at end of file diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite deleted file mode 100644 index abc4711..0000000 Binary files a/.vs/slnx.sqlite and /dev/null differ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..7df50ec --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,26 @@ +{ + "version": "0.2.0", + "configurations": [ + { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/bin/Debug/net7.0/cs.dll", + "args": [], + "cwd": "${workspaceFolder}", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..2c35d1c --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/cs.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/cs.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/cs.csproj" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git a/Program.cs b/Program.cs index a0725da..44f5558 100644 --- a/Program.cs +++ b/Program.cs @@ -19,41 +19,41 @@ public class coreGame { public static void prologue() { - Settings.check(); - JsonNode _jsonData = Settings.Read()!; - string speed = _jsonData[0]["TextSpeed"].ToString(); - int textspeed = Convert.ToInt32(speed); - //Prologue - TextTool.TextGen("England 2079\n", textspeed, true, false, 2000); - TextTool.StoryGen("Girl", "I-Is this ok...?", textspeed, true, true); - TextTool.StoryGen("Boss", "Is this all you can do in one week? USELESS. Don't come back if there's no progress at all!", textspeed, true, true); - TextTool.StoryGen("Girl", "!\n", textspeed, true, false, 1000); - TextTool.StoryGen("Girl", "...\n", textspeed, false, false, 1200); - TextTool.StoryGen("Girl", "yes...", textspeed, false, true); - TextTool.TextGen("An office worker girl had been working hard for a month straight, but her boss complains again. She tries her best on her work, but other co-workers like to put their work on her, and only her, for some reason, which makes her work not progress at all. All the co-workers already know this, but they don't care.", textspeed, true, true, 500); - TextTool.StoryGen("Girl", "...", textspeed, true, true); - TextTool.StoryGen("Co-worker 1", "Can you help me with this work?", textspeed, true, true); - TextTool.StoryGen("Girl", "I-I still hav- \n", textspeed, true, false, 200); - TextTool.StoryGen("Co-worker 1", "Thank you.", textspeed, true, false, 2000); - TextTool.StoryGen("Girl", "... ", textspeed, true, false, 1000); - TextTool.TextGen("Again...", textspeed, false, true); - TextTool.TextGen("She sometimes thinks about quitting her job and finding a better one, but no one wants to hire her to work because they already have a lot of employees at their office.", textspeed, true, true); - TextTool.StoryGen("Girl", "... ", textspeed, true, false, 1200); - TextTool.TextGen("Maybe... ", textspeed, false, false, 1200); - TextTool.TextGen("Just maybe... ", textspeed, false, false, 1200); - TextTool.TextGen("What if I die and was reborn in another world like in isekai novel.", textspeed, false, true); - TextTool.StoryGen("Girl", "Just saying ", textspeed, true, false, 1000); - TextTool.TextGen("Haha...", textspeed, false, true); - TextTool.TextGen("She likes to read isekai novels during her free time. She often thinks about killing herself and living a happier life in the afterlife.", textspeed, true, true); - TextTool.StoryGen("Girl", "It's 8 PM already? ", textspeed, true , false, 1000); - TextTool.TextGen("Maybe I should go home and make something to eat for dinne-", textspeed, false, false, 1200); - TextTool.TextGen("...", textspeed, true, false, 3000); - TextTool.StoryGen("Girl", "... ", textspeed, true, false, 1200); - TextTool.TextGen("Why is everything black... ", textspeed, false, false, 1200); - TextTool.TextGen("I can't see anything.... ", textspeed, false, false, 1200); - TextTool.TextGen("What happened to me?", textspeed, false, true); - TextTool.TextGen("To be continue...", textspeed, true, true); - FileTool.SaveChaper("save1-1", "save", 1, 1, true); + Settings.check(); + JsonNode _jsonData = Settings.Read()!; + string speed = _jsonData[0]["TextSpeed"].ToString(); + int textspeed = Convert.ToInt32(speed); + //Prologue + TextTool.TextGen("England 2079\n", textspeed, true, false, 2000); + TextTool.StoryGen("Girl", "I-Is this ok...?", textspeed, true, true); + TextTool.StoryGen("Boss", "Is this all you can do in one week? USELESS. Don't come back if there's no progress at all!", textspeed, true, true); + TextTool.StoryGen("Girl", "!\n", textspeed, true, false, 1000); + TextTool.StoryGen("Girl", "...\n", textspeed, false, false, 1200); + TextTool.StoryGen("Girl", "yes...", textspeed, false, true); + TextTool.TextGen("An office worker girl had been working hard for a month straight, but her boss complains again. She tries her best on her work, but other co-workers like to put their work on her, and only her, for some reason, which makes her work not progress at all. All the co-workers already know this, but they don't care.", textspeed, true, true, 500); + TextTool.StoryGen("Girl", "...", textspeed, true, true); + TextTool.StoryGen("Co-worker 1", "Can you help me with this work?", textspeed, true, true); + TextTool.StoryGen("Girl", "I-I still hav- \n", textspeed, true, false, 200); + TextTool.StoryGen("Co-worker 1", "Thank you.", textspeed, true, false, 2000); + TextTool.StoryGen("Girl", "... ", textspeed, true, false, 1000); + TextTool.TextGen("Again...", textspeed, false, true); + TextTool.TextGen("She sometimes thinks about quitting her job and finding a better one, but no one wants to hire her to work because they already have a lot of employees at their office.", textspeed, true, true); + TextTool.StoryGen("Girl", "... ", textspeed, true, false, 1200); + TextTool.TextGen("Maybe... ", textspeed, false, false, 1200); + TextTool.TextGen("Just maybe... ", textspeed, false, false, 1200); + TextTool.TextGen("What if I die and was reborn in another world like in isekai novel.", textspeed, false, true); + TextTool.StoryGen("Girl", "Just saying ", textspeed, true, false, 1000); + TextTool.TextGen("Haha...", textspeed, false, true); + TextTool.TextGen("She likes to read isekai novels during her free time. She often thinks about killing herself and living a happier life in the afterlife.", textspeed, true, true); + TextTool.StoryGen("Girl", "It's 8 PM already? ", textspeed, true , false, 1000); + TextTool.TextGen("Maybe I should go home and make something to eat for dinne-", textspeed, false, false, 1200); + TextTool.TextGen("...", textspeed, true, false, 3000); + TextTool.StoryGen("Girl", "... ", textspeed, true, false, 1200); + TextTool.TextGen("Why is everything black... ", textspeed, false, false, 1200); + TextTool.TextGen("I can't see anything.... ", textspeed, false, false, 1200); + TextTool.TextGen("What happened to me?", textspeed, false, true); + TextTool.TextGen("To be continue...", textspeed, true, true); + FileTool.SaveChaper("save1-1", "save", 1, 1, true); } public static void chapter1() { @@ -779,7 +779,6 @@ public static string ChoiceRoute(string Question, string Choice1, string Choice2 if (Choose == "1" || Choose == "2" || Choose == "3") { return Choose; - break; } else {