Updated ReadMe file.

This commit is contained in:
Ryan "Lofenyy" Medeiros 2023-07-01 02:46:24 -06:00
parent 230629e4bb
commit 63394ac74f
8 changed files with 82 additions and 60 deletions

View File

@ -29,8 +29,25 @@ Currently, the only supported platform is GNU/Linux. Support for other operating
## Contributing
Please feel free to play around with the map editor and send me your creations to be merged into the greater world. I'm also very open to bug reports, support requests, and code contributions. You can create an issue report at 'https://gitea.com/lofenyy/LibreWands/'. You can support my efforts at [LiberaPay.](https://liberapay.com/lofenyy/)
There are a vast number of ways you can contribute to this project. Any and all help is greatly appreciated.
* Help design the world using the map editor.
* Help design the world with pencil and paper.
* Help build and tune the game engine.
* Help write the game.
* Help hunt for bugs.
* Submit issue reports.
* Edit this README file.
* Edit our Makefile.
* Advocate for better standards compliance.
* Optimise our software.
* Help implement multiplayer.
* Help write our documentation.
* Develop software quality tests.
* Package this software for your favourite operating system.
* Spread the word about this project.
* Tell me how I can make contributing easier.
* Support my efforts at [LiberaPay.](https://liberapay.com/lofenyy/)
## Copyright Notice

View File

@ -66,7 +66,7 @@ int main()
// For all existing base tiles, draw them.
for (int C = 0; C < map[aMap].nBase; C++)
{
//If this tile is active, unwalkable, invisible and white-on-blue
// If this tile is active, unwalkable, invisible and white-on-blue
if ((map[aMap].Base[C].active) && (map[aMap].Base[C].walk == 0) &&
(map[aMap].Base[C].t == ' ') && (map[aMap].Base[C].c == 48))
{
@ -76,20 +76,20 @@ int main()
tile_W[A % 8]);
attroff(COLOR_PAIR(map[aMap].Base[C].c));
}
//If this tile isn't all-of-the-above
// If this tile isn't all-of-the-above
else if (map[aMap].Base[C].active)
{
//Draw it normally
// Draw it normally
attron(COLOR_PAIR(map[aMap].Base[C].c));
mvprintw(map[aMap].Base[C].y - y, map[aMap].Base[C].x - x, "%c",
map[aMap].Base[C].t);
attroff(COLOR_PAIR(map[aMap].Base[C].c));
}
//If we're hovering over this base tile
// If we're hovering over this base tile
if ((map[aMap].Base[C].x - (xmax / 2) == x) &&
(map[aMap].Base[C].y - (ymax / 2) == y))
{
//Print out useful info in the bottom-left screen
// Print out useful info in the bottom-left screen
mvprintw(ymax - 2, 0, "Walkable: %s\nColor: %i",
map[aMap].Base[C].walk ? "True" : "False",
map[aMap].Base[C].c);
@ -157,7 +157,7 @@ int main()
if ((map[aMap].Door[C].x - (xmax / 2) == x) &&
(map[aMap].Door[C].y - (ymax / 2) == y))
{
//Print out useful info in the bottom-left screen
// Print out useful info in the bottom-left screen
mvprintw(ymax - 2, 0, "Status: %s\nMap: %i X: %li Y: %li",
map[aMap].Door[C].lock ? "Locked" : "Unlocked",
map[aMap].Door[C].ID, map[aMap].Door[C].nx,
@ -182,27 +182,20 @@ int main()
if ((map[aMap].Char[C].x - (xmax / 2) == x) &&
(map[aMap].Char[C].y - (ymax / 2) == y))
{
//Print out useful info in the bottom-left screen
// Print out useful info in the bottom-left screen
mvprintw(ymax - 1, 0, "Name: %s - Type: %s - Moves: %s",
map[aMap].Char[C].name,
map[aMap].Char[C].type ? "Aggressive" : "Passive",
map[aMap].Char[C].move ? "Yes" : "No");
mvprintw(ymax - 2, 0, "Dialogue 1: %s",
map[aMap].Char[C].dialog1);
mvprintw(ymax - 3, 0, "Dialogue 2: %s",
map[aMap].Char[C].dialog2);
mvprintw(ymax - 4, 0,
"Monsters: %i-%i %i-%i %i-%i %i-%i %i-%i",
map[aMap].Char[C].mon[0].type,
map[aMap].Char[C].mon[0].level,
map[aMap].Char[C].mon[1].type,
map[aMap].Char[C].mon[1].level,
map[aMap].Char[C].mon[2].type,
map[aMap].Char[C].mon[2].level,
map[aMap].Char[C].mon[3].type,
map[aMap].Char[C].mon[3].level,
map[aMap].Char[C].mon[4].type,
map[aMap].Char[C].mon[4].level);
mvprintw(ymax - 2, 0, "Dialogue 1: %s", map[aMap].Char[C].dialog1);
mvprintw(ymax - 3, 0, "Dialogue 2: %s", map[aMap].Char[C].dialog2);
mvprintw(
ymax - 4, 0, "Monsters: %i-%i %i-%i %i-%i %i-%i %i-%i",
map[aMap].Char[C].mon[0].type, map[aMap].Char[C].mon[0].level,
map[aMap].Char[C].mon[1].type, map[aMap].Char[C].mon[1].level,
map[aMap].Char[C].mon[2].type, map[aMap].Char[C].mon[2].level,
map[aMap].Char[C].mon[3].type, map[aMap].Char[C].mon[3].level,
map[aMap].Char[C].mon[4].type, map[aMap].Char[C].mon[4].level);
}
}
@ -249,7 +242,7 @@ int main()
turnTip();
if (k == ' ')
addBase();
if (tool == 1) //If continuous painting is on
if (tool == 1) // If continuous painting is on
addBase();
if (k == 'i')
addInfo();

View File

@ -11,6 +11,10 @@
// You should have received a copy of the GNU General Public License along with LibreWands. If
// not, see https://www.gnu.org/licenses/.
// ---
#include <ncurses.h>
// To run at the beginning of the game.
void initEngine()
{

View File

@ -275,7 +275,7 @@ int delTile()
// If our cursor is over it,
if ((map[aMap].Base[C].x == x + (xmax / 2)) &&
(map[aMap].Base[C].y == y + (ymax / 2)))
// Deactivate it
// Deactivate it
map[aMap].Base[C].active = 0;
// For every info tile
@ -283,7 +283,7 @@ int delTile()
// If our cursor is over it,
if ((map[aMap].Info[C].x == x + (xmax / 2)) &&
(map[aMap].Info[C].y == y + (ymax / 2)))
// Deactivate it
// Deactivate it
map[aMap].Info[C].active = 0;
// For every item tile
@ -291,7 +291,7 @@ int delTile()
// If our cursor is over it,
if ((map[aMap].Item[C].x == x + (xmax / 2)) &&
(map[aMap].Item[C].y == y + (ymax / 2)))
// Deactivate it
// Deactivate it
map[aMap].Item[C].active = 0;
// For every door tile
@ -299,7 +299,7 @@ int delTile()
// If our cursor is over it,
if ((map[aMap].Door[C].x == x + (xmax / 2)) &&
(map[aMap].Door[C].y == y + (ymax / 2)))
// Deactivate it
// Deactivate it
map[aMap].Door[C].active = 0;
// For every char tile
@ -307,7 +307,7 @@ int delTile()
// If our cursor is over it,
if ((map[aMap].Char[C].x == x + (xmax / 2)) &&
(map[aMap].Char[C].y == y + (ymax / 2)))
// Deactivate it
// Deactivate it
map[aMap].Char[C].active = 0;
// Exit gracefully
@ -402,7 +402,7 @@ int saveMap()
// For every map
for (uint_fast8_t C = 0; C < nMap; C++)
{
//Print out a header giving valuable info for memory allocation.
// Print out a header giving valuable info for memory allocation.
fprintf(fp,
"\t<map bases=\"%i\" infos=\"%i\" items=\"%i\" doors=\"%i\" "
"chars=\"%i\">\n",
@ -413,7 +413,7 @@ int saveMap()
{
if (map[C].Base[B].active)
{
//Print out an XML tag with its info.
// Print out an XML tag with its info.
fprintf(fp,
"\t\t<base x=\"%li\" y=\"%li\" t=\"%i\" c=\"%i\" "
"walk=\"%i\" />\n",
@ -426,7 +426,7 @@ int saveMap()
{
if (map[C].Info[B].active)
{
//Print out an XML tag with its info.
// Print out an XML tag with its info.
fprintf(fp,
"\t\t<info x=\"%li\" y=\"%li\" t=\"%i\" c=\"%i\" "
"dialog=\"%s \" />\n",
@ -439,7 +439,7 @@ int saveMap()
{
if (map[C].Item[B].active)
{
//Print out an XML tag with its info.
// Print out an XML tag with its info.
fprintf(fp,
"\t\t<item x=\"%li\" y=\"%li\" t=\"%i\" c=\"%i\" ID=\"%i\" "
"/>\n",
@ -452,7 +452,7 @@ int saveMap()
{
if (map[C].Door[B].active)
{
//Print out an XML tag with its info.
// Print out an XML tag with its info.
fprintf(
fp,
"\t\t<door x=\"%li\" y=\"%li\" t=\"%i\" c=\"%i\" lock=\"%i\" "
@ -467,7 +467,7 @@ int saveMap()
{
if (map[C].Char[B].active)
{
//Print out an XML tag with its info.
// Print out an XML tag with its info.
fprintf(
fp,
"\t\t<char x=\"%li\" y=\"%li\" t=\"%i\" c=\"%i\" type=\"%i\" "
@ -583,7 +583,7 @@ int loadMap()
// This makes it work for some reason.
strncpy(buffer, "", 256);
//Switch maps and reset our values
// Switch maps and reset our values
iMap++;
iBase = 0;
iInfo = 0;

View File

@ -11,6 +11,8 @@
// You should have received a copy of the GNU General Public License along with LibreWands. If
// not, see https://www.gnu.org/licenses/.
// ---
// For more information on the world maps part of this game engine, see the LibreWands book.
// Monsters that characters sometimes carry. See char below.

View File

@ -12,7 +12,6 @@
// not, see https://www.gnu.org/licenses/.
#include "engineCore.c"
#include <ncurses.h>
// Get controller input and display which button was last pressed.
int main()
@ -67,7 +66,7 @@ int main()
mvprintw(7, 2, "START");
// Print our cursor on the same line as the coresponding button press.
mvprintw(a, 0, ">");
mvprintw(cursorPos, 0, ">");
refresh();
}
endwin();

View File

@ -8,7 +8,10 @@
# You should have received a copy of the GNU General Public License along with LibreWands. If not, see https://www.gnu.org/licenses/.
# 20% Appears to be a good value.
# ---
# Calculates the percentage of commented lines ofer total lines of code.
# 20% Appears to be an excellent value. 17.5 is good, and 15 is okay.
if [ -z "$1" ]
then

View File

@ -6,5 +6,9 @@
# You should have received a copy of the GNU General Public License along with LibreWands. If not, see https://www.gnu.org/licenses/.
# ---
# Checks for files with missing copyright information
find ../ -type f -not -path '../Build/*' -not -path '../.git/*' -not -name 'LICENSE' | xargs grep -LE "This file is part of LibreWands."