diff options
author | tom <tom@ground-control> | 2015-05-05 15:25:32 -0500 |
---|---|---|
committer | tom <tom@ground-control> | 2015-05-05 15:25:32 -0500 |
commit | 22cd24a1fe33b6bc9f52a600feb5cdb8d868d50f (patch) | |
tree | a2c854b5ed2b746017bd975a241f85b7080ffa4c /src/main.cpp | |
parent | afcf5f509a318ee66a16690f204f03dee701722e (diff) |
fixed list to make it easy to add more creatures/resources.
need to figure out how to generate more random numbers
after - implement resource amount and ability to eat
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4435ad9..0e26dc5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,9 +3,7 @@ int main()
{
Window main;
- //Creature testcreature(main, "img/Cbasic.png");
- //Resource testresource(main, "img/Rbasic.png");
- List(main);
+ List L(main);
Event e;
while(e.gRun())
@@ -17,14 +15,14 @@ int main() //else if(e.gEventType() == SDL_KEYDOWN)
// eventHandle(e.gEvent());
}
- main.Clear();
-
- //testcreature.Behavior();
- //testcreature.Place();
- //testresource.Place();
+ main.Clear();
+
+ L.Behavior();
+ L.Place();
+
main.Render();
- SDL_Delay(10);
+ SDL_Delay(5);
}
main.Destroy();
|