From 83d23230a3d71d76ee5e0368e071273beaa6d1b4 Mon Sep 17 00:00:00 2001 From: tom Date: Fri, 8 May 2015 16:16:59 -0500 Subject: death now works properly --- src/resource.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/resource.cpp') 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; } -- cgit v1.2.3