From cae4150779c587edcc40b75f04624ab3971bbed6 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 18 Mar 2020 21:36:21 +0100 Subject: random spawn --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 7fe08bf..b0c98a0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,5 @@ #include +#include #include "graphics.hpp" #include "game.hpp" @@ -9,6 +10,7 @@ int main() { + srand(time(NULL)); Game game = Game(GAME_GRID_SIZE); Graphics *graphics = new Graphics(&game, WINDOW_TITLE, WINDOW_WIDTH, WINDOW_HEIGHT); -- cgit