summaryrefslogtreecommitdiff
path: root/src/resource.cpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-05-08 16:16:59 -0500
committertom <tom@ground-control>2015-05-08 16:16:59 -0500
commit83d23230a3d71d76ee5e0368e071273beaa6d1b4 (patch)
treed617951e5d897ab79efdc061d541c860c2569fd5 /src/resource.cpp
parentef2d82b47654dff444263ae149aec0d416a4f405 (diff)
death now works properly
Diffstat (limited to 'src/resource.cpp')
-rw-r--r--src/resource.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/resource.cpp b/src/resource.cpp
index e549214..6a228fe 100644
--- a/src/resource.cpp
+++ b/src/resource.cpp
@@ -6,17 +6,15 @@ Resource::Resource(Window m, std::string s) //Constructor
renderer = m.getRenderer();
//Initialized random position coordinates
- int yStart = rand()%800;
- int xStart = rand()%1200;
- yPosition = yStart;
- xPosition = xStart;
+ yPosition = rand()%800;
+ xPosition = rand()%1200;
}
Resource::Resource(Window m, std::string s, Location z)
{
texture = loadTexture(s, m);
renderer = m.getRenderer();
-
+
yPosition = z.y;
xPosition = z.x;
}