diff --git a/main.cpp b/main.cpp index a0d165b..6e1edc8 100644 --- a/main.cpp +++ b/main.cpp @@ -8,6 +8,7 @@ * ncurses * thats it... */ + #include #include #include @@ -51,7 +52,7 @@ struct vec2 { class Game { public: - Game(uint16_t boardX = 40, uint16_t boardY = 60, uint16_t framesPerSec = 20) + Game(uint16_t boardX = 90, uint16_t boardY = 30, uint16_t framesPerSec = 10) : delay(1000 / framesPerSec), boardSize(boardX, boardY), snakeHead(boardX / 2, boardY / 2), GameBoard(boardX * boardY, 0), snakeDir(0, -1) { @@ -190,7 +191,7 @@ std::unique_ptr game; void handleSignal(int signal) { game->end(); } int main(int argc, char *argv[]) { - game = std::make_unique(90, 30, 10); + game = std::make_unique(); std::signal(SIGTERM, handleSignal); std::signal(SIGINT, handleSignal); game->start();