diff --git a/.gdbinit b/.gdbinit new file mode 100644 index 0000000..94b5890 --- /dev/null +++ b/.gdbinit @@ -0,0 +1,8 @@ +set confirm off +set breakpoint pending on +set logging on +set logging overwrite on +set print pretty on +set pagination off +break abort +catch throw diff --git a/Makefile b/Makefile index b1b1764..ff8c808 100644 --- a/Makefile +++ b/Makefile @@ -25,3 +25,6 @@ run: build test clean: meson compile --clean -C builddir + +debug: + gdb --nx -x .gdbinit builddir/roguish.exe diff --git a/map.hpp b/map.hpp index f36b930..d172f83 100644 --- a/map.hpp +++ b/map.hpp @@ -13,8 +13,8 @@ #define WALL_VALUE 1 #define SPACE_VALUE 0 -constexpr int GAME_MAP_X = 90; -constexpr int GAME_MAP_Y = 90; +constexpr int GAME_MAP_X = 40; +constexpr int GAME_MAP_Y = 40; struct Room { size_t x = 0;