Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
0.0.43 - minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
NotRealSean committed Nov 28, 2022
1 parent 2d45816 commit 1ae3f2b
Show file tree
Hide file tree
Showing 31 changed files with 69 additions and 54 deletions.
67 changes: 59 additions & 8 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,43 @@ public static void chapter1()
string speed = _jsonData[0]["TextSpeed"].ToString();
int textspeed = Convert.ToInt32(speed);
//TextTool.textGen("enter smt",1 /*text speed*/, true /*clear console*/, true /*add press continue*/, 1 /*delay after text complete*/);
TextTool.TextGen("This is chapter 1 test text", textspeed, true, true);
FileTool.SaveChaper("save1-1", "save", 1, 1, true);
TextTool.TextGen("This is chapter 1 test text", textspeed, true);
string choose = FileTool.ChoiceRoute("Do you like this game?", "Yes", "Kinda", "No");
if (choose == "1")
{
FileTool.SaveChaper("save1-1", "save", 1, 1, true);
}
if (choose == "2")
{
FileTool.SaveChaper("save1-2", "save", 1, 2, true);
}
if (choose == "3")
{
TextTool.TextGen(":(", textspeed, true, true);
FileTool.SaveChaper("save1-3", "save", 1, 3, true);
}
}
public static void chapter2()
{
Settings.check();
JsonNode _jsonData = Settings.Read()!;
string speed = _jsonData[0]["TextSpeed"].ToString();
int textspeed = Convert.ToInt32(speed);
TextTool.TextGen("This is chapter 2 test text", textspeed, true, true);
FileTool.SaveChaper("save2-1", "save", 2, 1, true);
TextTool.TextGen("This is chapter 2 test text", textspeed, true);
string choose = FileTool.ChoiceRoute("Rate this game", "Like", "Normal", "Hate");
if (choose == "1")
{
FileTool.SaveChaper("save2-1", "save", 2, 1, true);
}
if (choose == "2")
{
FileTool.SaveChaper("save2-2", "save", 2, 2, true);
}
if (choose == "3")
{
TextTool.TextGen("Fine", textspeed, true, true);
FileTool.SaveChaper("save2-3", "save", 2, 3, true);
}
}
}
class Menu
Expand All @@ -55,7 +81,7 @@ static void Main(string[] args)
Console.Clear();
//Main menu
Console.WriteLine("=======================================================");
Console.WriteLine(" A Text-base game name(Can't think of name just yet)\n\t1 New Game\n\t2 Load\n\t3 Quick Load\n\t4 Settings\n\t5 Guide\n\t6 Credits\n\t7 Update\n\n\t9 Exit\t\t\t\t0.0.4");
Console.WriteLine(" A Text-base game name(Can't think of name just yet)\n\t1 New Game\n\t2 Load\n\t3 Quick Load\n\t4 Settings\n\t5 Guide\n\t6 Credits\n\t7 Update\n\n\t9 Exit\t\t\t\t0.0.43");
Console.WriteLine("=======================================================");
TextTool.TextGen("Key command -=>", textspeed);
string inPut = Console.ReadLine();
Expand Down Expand Up @@ -501,7 +527,7 @@ public static void SaveChaper(string filename, string path, int chapter, int rou
File.WriteAllText(Path.Combine(dir, filename), savedata);
if (quicksave = true)
{
File.WriteAllText(Path.Combine(dir, "QuickSave"), savedata);
File.WriteAllText(Path.Combine(dir, "_QuickSave"), savedata);
}
}
public static void CheckCreatedFolder(string foldername)
Expand Down Expand Up @@ -543,8 +569,8 @@ public static void LoadChapter(string filename)
}
public static void QLoadChapter()
{
string filename = "QuickSave";
string fullqpath = @"save/QuickSave";
string filename = "_QuickSave";
string fullqpath = @"save/_QuickSave";
if (!File.Exists(fullqpath))
{
Console.WriteLine("You don't have quick save file");
Expand Down Expand Up @@ -605,6 +631,31 @@ public static void DeleteSave(string filename, string path)
}
}
}
public static void Choice(string Question, string Choice1, string Choice2, string Choice3)
{
//Choice that doesn't affect anything

}
public static string ChoiceRoute(string Question, string Choice1, string Choice2, string Choice3)
{
//Choice that affect gameplay/ending
while (true)
{
TextTool.TextGen("\n" + Question);
Console.WriteLine("\n1 " + Choice1 + "\n2 " + Choice2 + "\n3 " + Choice3 + "\n");
TextTool.TextGen("Your answer(1-3) >");
string Choose = Console.ReadLine();
if (Choose == "1" || Choose == "2" || Choose == "3")
{
return Choose;
break;
}
else
{
Console.Clear();
}
}
}
}


Expand Down
10 changes: 2 additions & 8 deletions _update.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
Don't forget to check if game version match this update note
Update Beta 0.0.42
Update Beta 0.0.43
Framework
+- Move QuickSave file to save folder

UI
+ Make quick load work again

Settings
+- You can't enter value more than 500 now
+ Minor update uon ChoiceRoute function

Future Update
Code quality
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified bin/Debug/net7.0/cs.dll
Binary file not shown.
Binary file modified bin/Debug/net7.0/cs.pdb
Binary file not shown.
Binary file modified bin/Debug/net7.0/linux-x64/cs.dll
Binary file not shown.
Binary file modified bin/Debug/net7.0/linux-x64/cs.pdb
Binary file not shown.
Binary file modified bin/Debug/net7.0/win-x64/cs.dll
Binary file not shown.
Binary file modified bin/Debug/net7.0/win-x64/cs.pdb
Binary file not shown.
Binary file modified obj/Debug/net7.0/cs.dll
Binary file not shown.
Binary file modified obj/Debug/net7.0/cs.pdb
Binary file not shown.
Binary file modified obj/Debug/net7.0/linux-x64/cs.dll
Binary file not shown.
Binary file modified obj/Debug/net7.0/linux-x64/cs.pdb
Binary file not shown.
Binary file modified obj/Debug/net7.0/linux-x64/ref/cs.dll
Binary file not shown.
Binary file modified obj/Debug/net7.0/linux-x64/refint/cs.dll
Binary file not shown.
Binary file modified obj/Debug/net7.0/ref/cs.dll
Binary file not shown.
Binary file modified obj/Debug/net7.0/refint/cs.dll
Binary file not shown.
Binary file modified obj/Debug/net7.0/win-x64/cs.dll
Binary file not shown.
Binary file modified obj/Debug/net7.0/win-x64/cs.pdb
Binary file not shown.
Binary file modified obj/Debug/net7.0/win-x64/ref/cs.dll
Binary file not shown.
Binary file modified obj/Debug/net7.0/win-x64/refint/cs.dll
Binary file not shown.
15 changes: 0 additions & 15 deletions obj/cs.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,13 @@
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Runtime.linux-x64",
"version": "[7.0.0, 7.0.0]"
},
{
"name": "Microsoft.NETCore.App.Runtime.linux-x64",
"version": "[7.0.0, 7.0.0]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/7.0.100/RuntimeIdentifierGraph.json"
}
},
"runtimes": {
"linux-x64": {
"#import": []
}
}
}
}
Expand Down
18 changes: 1 addition & 17 deletions obj/project.assets.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"version": 3,
"targets": {
"net7.0": {},
"net7.0/linux-x64": {}
"net7.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
Expand Down Expand Up @@ -55,28 +54,13 @@
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Runtime.linux-x64",
"version": "[7.0.0, 7.0.0]"
},
{
"name": "Microsoft.NETCore.App.Runtime.linux-x64",
"version": "[7.0.0, 7.0.0]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/7.0.100/RuntimeIdentifierGraph.json"
}
},
"runtimes": {
"linux-x64": {
"#import": []
}
}
}
}
7 changes: 2 additions & 5 deletions obj/project.nuget.cache
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"version": 2,
"dgSpecHash": "8VZWUBXMmtIjk+JEnM1W911LzbzASMib9KSS+//5KMxfFZgcOCoZRf6T2P5BDmILOZrl37SXX4/uPJOyr+Llsg==",
"dgSpecHash": "VQlEl2RJ4ZXCZgONgUgoze2uE+5JmhbkSq8XTkt/c60W8lYBTP6ggQPc+1kS8NYi6r3/3DAvRX+N14kkpgV0gA==",
"success": true,
"projectFilePath": "/home/notrealsean/Desktop/Code/cs/consoleapp/VNgame/cs.csproj",
"expectedPackageFiles": [
"/home/notrealsean/.nuget/packages/microsoft.netcore.app.runtime.linux-x64/7.0.0/microsoft.netcore.app.runtime.linux-x64.7.0.0.nupkg.sha512",
"/home/notrealsean/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/7.0.0/microsoft.aspnetcore.app.runtime.linux-x64.7.0.0.nupkg.sha512"
],
"expectedPackageFiles": [],
"logs": []
}
1 change: 0 additions & 1 deletion save/QuickSave

This file was deleted.

1 change: 1 addition & 0 deletions save/_QuickSave
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"chapter":"1","route":"3"}]
1 change: 1 addition & 0 deletions save/save1-2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"chapter":"1","route":"2"}]
1 change: 1 addition & 0 deletions save/save1-3
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"chapter":"1","route":"3"}]
1 change: 1 addition & 0 deletions save/save2-2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"chapter":"2","route":"2"}]
1 change: 1 addition & 0 deletions save/save2-3
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"chapter":"2","route":"3"}]

0 comments on commit 1ae3f2b

Please sign in to comment.