summaryrefslogtreecommitdiff
path: root/src/resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resource.cpp')
-rw-r--r--src/resource.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/resource.cpp b/src/resource.cpp
index ac89e4b..a087aca 100644
--- a/src/resource.cpp
+++ b/src/resource.cpp
@@ -4,6 +4,14 @@ Resource::Resource(Window m, std::string s)
{
texture = loadTexture(s, m);
renderer = m.getRenderer();
- //int z = %
- x=y=300;
+ int zy = rand()%800;
+ int zx = rand()%1200;
+ y=zy;
+ x=zx;
+}
+
+Location Resource::getLocation()
+{
+ Location L(x,y,2);
+ return L;
}