From f6f6d81c5634f659693914b7b74efcdd39ba5d4f Mon Sep 17 00:00:00 2001 From: tom Date: Tue, 10 Jan 2017 09:49:32 -0600 Subject: -Replaced images with colored rectangles -Removed various functions and variables pertaining to such images -Started migrating all uses of Location to SDL_Rect (I would preferably completly remove Location.hpp) -Scaled down resolution to 1080x640 (I would like to make these global constants) --- src/list.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/list.cpp') diff --git a/src/list.cpp b/src/list.cpp index e08531b..2fca4f4 100644 --- a/src/list.cpp +++ b/src/list.cpp @@ -5,12 +5,12 @@ List::List(Window m) int i; for(i=0;i<10;i++){ - Creature X(m,"img/Cbasic.png"); + Creature X(m,10); C.push_back(X); } for(i=0;i<100;i++){ - Resource Y(m,"img/Rbasic.png"); + Resource Y(m,5); R.push_back(Y); } @@ -41,7 +41,8 @@ void List::Behavior() if(it->getHealth()<=0){ Location z = it->getLocation(); - Resource r = Resource(main,"img/Cdead.png",z); + SDL_Rect rect = it->getRect(); + Resource r = Resource(main,rect.w,z); R.push_back(r); C.erase(it--); } -- cgit v1.2.3