Updated some documentation.

This commit is contained in:
Ryan "Lofenyy" Medeiros 2023-07-02 04:53:14 -06:00
parent 88d40b8f29
commit b0aa6809ef
4 changed files with 18 additions and 34 deletions

View File

@ -29,36 +29,6 @@ Navigate around the map by pressing the arrow keys on the keyboard. To navigate
Answer the on-screen questions as prompted. The item will be placed at the cursors location. You can manually draw with basic tiles using the spacebar, or you can toggle continuous painting by pressing F8. To correct a mistake, press the backspace key.
\section{Color codes}
To lookup a specific colour code, look at the foreground and background charts. Add these two numbers together to get the desired outcome.
\subsubsection{Background}
\begin{description}
\item [Black] 0
\item [Red] 10
\item [Green] 20
\item [Yellow] 30
\item [Blue] 40
\item [Magenta] 50
\item [Cyan] 60
\item [White] 70
\end{description}
\subsubsection{Foreground}
\begin{description}
\item [Black] 1
\item [Red] 2
\item [Green] 3
\item [Yellow] 4
\item [Blue] 5
\item [Magenta] 6
\item [Cyan] 7
\item [White] 8
\end{description}
\section{Saving and Loading Maps}
To save your map, press F5 and type in your file name. Loading is the exact same, except you press F6.

View File

@ -174,6 +174,20 @@ The monsters that a character carries are strored in a struct array with five el
\item[level] The level of the monster in this slot.
\end{description}
\section{Functions}
\begin{description}
\item[addBase()]
\item[addInfo()]
\item[addItem()]
\item[addDoor()]
\item[addChar()]
\item[delTile()]
\item[newMap()]
\item[saveMaps()]
\item[loadMaps()]
\end{description}
\chapter{World Design}
The information in this chapter are merely suggestions. I've designed the engine to allow for as much creative freedom as possible. Feel free to break the rules, if it creates a more fun and/or interesting gaming experience.

View File

@ -341,7 +341,7 @@ int main()
mvprintw(4, 0, "Save name: ");
getnstr(buffer1, 8);
saveMap(buffer1);
saveMaps(buffer1);
}
if (k == KEY_F(6))
{
@ -349,7 +349,7 @@ int main()
mvprintw(4, 0, "Load name: ");
getnstr(buffer1, 8);
loadMap(buffer1);
loadMaps(buffer1);
}
// if(k == KEY_F(7))
// copyMap();

View File

@ -233,7 +233,7 @@ int newMap()
}
// Save our internal world map as an XML document.
int saveMap(char filename[256])
int saveMaps(char filename[256])
{
// Open the file. Exit on failure.
FILE *fp = fopen(filename, "w");
@ -342,7 +342,7 @@ int saveMap(char filename[256])
}
// Load our world maps from an XML document.
int loadMap(char filename[256])
int loadMaps(char filename[256])
{
int iMap = 0;
int iBase = 0;