a7822331f8
There was an exploit where a keyboard would fire events quicker then they could be consumed. This would lock the main game loop in the SDL_PollEvent loop and block rendering until the key in this case was released. Combning this with an attack meant that you could "farm" one NPC for multiple kills and massive XP gains. Leaving the player at level 8+ on dungeon level 1. This fix should mitigate such shenanigans. |
||
---|---|---|
assets | ||
bin | ||
build | ||
data | ||
physfs-3.0.1 | ||
src | ||
test | ||
.appveyor.yml | ||
.clang_complete | ||
.gitignore | ||
.travis.yml | ||
.vimrc | ||
CMakeLists.txt | ||
LICENSE.txt | ||
Makefile | ||
README.md | ||
TODO.txt |
README.md
Something in the ways of NETHACK
A simple nethack similar game written in C using SDL2.
Idea
Randomly generated maps/rooms. Leveling system, permadeath, multiple classes. Casual and fun for 10-20 minutes during a break from regular work/play.
I wanted to practice C and I'm comfortable using SDL2. The assets are graciously taken from the web. More info in the README in the assets folder.
Future
I'm planning on releaseing this game on Steam once I'm happy with it. Not to get rich, mostly because I think it will look nice on my resumé. the code will remain open source under GPLv3 even after a possible Steam release. So you'll still be able to download and compile it yourself if you can and want to.
Compile
Apart from basic compile tools (GCC/Clang, Make) you'll also need to install lua, sdl2, sdl2-image, sdl2-ttf, sdl2-mixer (If on a debian based dist you need to install the dev packages). Optionally you can also install cppcheck and physfs
Once that is done run the following:
mkdir _build
cd _build
cmake -DCMAKE_BUILD_TYPE=Debug .. # Build type flag is optional
make
Contribute
Have an idea and able to implement it? Fork and send me a pull request and I'll check it out. If I like it I will add it. If it's a big thing I'll add your name to the credits list (once I add it in game).