Moria: a roguelike Dungeon Crawler game | Umoria Source Code
-s
.-d
, because of the game seed.-o
and just use the one arg (-r
) for specifying (forcing)
the use of roguelike keys (hjkl
).owizcmds.hlp
> help.txt
.5.2.2
up to 5.7.x
.TV_NEVER
was an unsigned int, but should be signed as it's being given
a -1
value. https://github.com/dungeons-of-moria/umoria/commit/8c3d1d2
monsterTakeHit()
check is now correct in spellLightLineTouchesMonster()
.
https://github.com/dungeons-of-moria/umoria/commit/b26547d
find_count
was not being
dereferenced, so playerEndRunning()
would not be called correctly.
https://github.com/dungeons-of-moria/umoria/commit/95dc308
-O2
optimization flag.data/versions.txt
is now set automatically via CMake.types.h
.main.cpp
to contain [mostly] just CLI arg parsing, and some
basic game initialization. All other game logic moved to moria.cpp
.The main focus of this release was to rename all functions, function variables, and global variables. The old naming did not reveal their purpose very well, which made understanding the code more difficult.
These are not meant to be final names, they have been chosen to aid future refactoring tasks.
Additionally:
variable.cpp
file was renamed to globals.cpp
.constant.h
) changed to a constexpr
.The main focus of this release was to refactor the source code, applying the Extract Method refactoring pattern, along with fixing a couple of small bugs.
I've also added to the documentation with a better contributing guide, as well a proper Code of Conduct.
curs_set(0)
as a visible cursor is needed in menus!if/else
statements:
else
when an if
returns.do/while
statements, to be just while
statements where possible.if
statement expressions.NOTE: this version has a small bug in some repeat commands (e.g. tunnelling). It is recommended you download v5.7.0
, or v5.7.3
and greater, when released.
-h
and -v
).-Wall
, -Wextra
, -Werror
, -Wshadow
)moria
to umoria
, save file to game.sav
,
and scores to scores.dat
.clang-format
/-tidy
to clean up the code formatting.int8u
, int16u
, etc.) with their equivalent
C standard types._Bool
type.historical
directory.