summaryrefslogtreecommitdiff
path: root/src/creature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/creature.cpp')
-rw-r--r--src/creature.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/creature.cpp b/src/creature.cpp
index c9f9fa0..8e86c0d 100644
--- a/src/creature.cpp
+++ b/src/creature.cpp
@@ -4,7 +4,14 @@ Creature::Creature(Window m, std::string s)
{
texture = loadTexture(s, m);
renderer = m.getRenderer();
- x=y=500;
+
+ srand(time(NULL));
+ int z = rand()%800;
+ y=z;
+
+ z = rand()%800;
+ x=z;
+ std::cout << x << ' ' << y << std::endl;
//For the test resource
xT=yT=300;