Hello all CSharp coders,
i have started a 2D GameEngine in C# iv already done Color rendering etc but to create the map i want the program to read from a file called SD_ENGINE_gui.txt
the code below is the map grid
w = 1
f = 0
so i want the program to read that from the .txt file and any changes made in the .txt will change once restarting the .exe. i have tryed many ways to save int values but non work.
Can someone please help me
i have started a 2D GameEngine in C# iv already done Color rendering etc but to create the map i want the program to read from a file called SD_ENGINE_gui.txt
the code below is the map grid
w = 1
f = 0
PHP:
int[,] level = {
{w, w, w, w, w, w, w, w, w, w},
{w, f, f, f, f, f, f, f, f, w},
{w, f, f, f, f, f, f, w, f, w},
{w, f, f, f, f, f, f, w, f, w},
{w, w, w, f, f, f, f, w, w, w},
{w, f, w, f, f, f, f, f, f, w},
{w, f, w, f, f, f, f, f, f, w},
{w, f, f, f, f, f, f, f, f, w},
{w, f, f, f, f, f, f, f, f, w},
{w, w, w, w, w, w, w, w, w, w},
};
so i want the program to read that from the .txt file and any changes made in the .txt will change once restarting the .exe. i have tryed many ways to save int values but non work.
Can someone please help me