aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-11-09 08:47:39 -0500
committerClyne Sullivan <tullivan99@gmail.com>2015-11-09 08:47:39 -0500
commitb0f7e8d2caa72ab1fe93fa58dbfa841750d96037 (patch)
treea72cfd9752944a4c8628527e9dc5a62ae31e7e3e /src/gameplay.cpp
parent9748d6306db7aa66128baeeca4c2a27b0efa1d87 (diff)
draw/handle all layers
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index e9d0a74..3b13dfe 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -64,22 +64,16 @@ void initEverything(void){
*/
player=new Player();
- player->spawn(0,5000);
+ player->spawn(0,200);
/*
* Create a structure (this will create villagers when spawned).
*/
- currentWorld->addStructure(STRUCTURET,(rand()%120*HLINE),10);
-
- /*
- * Generate an indoor world and link the structure to it.
- */
-
IndoorWorld *iw=new IndoorWorld();
iw->generate(200);
- currentWorld->build.back()->inside=iw;
-
+ currentWorld->addStructure(STRUCTURET,(rand()%120*HLINE),10,iw);
+
/*
* Spawn a mob.
*/