From 92977a889bb045827ae51dc088fa3da501bd29e3 Mon Sep 17 00:00:00 2001 From: tom Date: Sat, 14 Jan 2017 12:10:28 -0600 Subject: made it so resources spawn during simulation --- exec | Bin 307904 -> 0 bytes inc/constants.hpp | 1 + src/list.cpp | 16 ++++++++++------ 3 files changed, 11 insertions(+), 6 deletions(-) delete mode 100755 exec diff --git a/exec b/exec deleted file mode 100755 index a4b87a7..0000000 Binary files a/exec and /dev/null differ diff --git a/inc/constants.hpp b/inc/constants.hpp index 2a5b8fb..08f548e 100644 --- a/inc/constants.hpp +++ b/inc/constants.hpp @@ -3,6 +3,7 @@ const int CREATURES = 10; const int RESOURCES = 100; +const int MINIMUM_RESOURCES = 90; const int WINDOW_X = 1080; const int WINDOW_Y = 640; diff --git a/src/list.cpp b/src/list.cpp index b8d2888..3127d76 100644 --- a/src/list.cpp +++ b/src/list.cpp @@ -2,23 +2,21 @@ List::List(Window m) { - int i; + main = m; + int i; SDL_Rect Rect = {0,0,CREATURE_SIZE,CREATURE_SIZE}; - for(i=0;i List::getNear(Creature nC) -- cgit v1.2.3