diff options
Diffstat (limited to 'src/resource.cpp')
-rw-r--r-- | src/resource.cpp | 8 |
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; } |