diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-11-30 08:49:20 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-11-30 08:49:20 -0500 |
commit | af22d85f9a417a94ea75db1878219f8baeba8b73 (patch) | |
tree | c0564e39209b3e9acb8b65e98632b04c1828d55e /src/gameplay.cpp | |
parent | 0415b7f0a9305cd43e8fd8c77a8bafd3b8016dd0 (diff) | |
parent | 45bca98b792f8ced1a57ef8c5beed2a90a79d47f (diff) |
Working on animations
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r-- | src/gameplay.cpp | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp index 6e85b6d..2fd7424 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -97,28 +97,12 @@ void initEverything(void){ /* * World creation: */ + World *test=new World(); World *playerSpawnHill=new World(); - /* - * Load the saved world if it exists, otherwise generate a new one. - */ - - /*FILE *worldLoad; - if((worldLoad=fopen("world.dat","r"))){ - std::cout<<"Yes"<<std::endl; - char *buf; - unsigned int size; - fseek(worldLoad,0,SEEK_END); - size=ftell(worldLoad); - rewind(worldLoad); - buf=(char *)malloc(size); - fread(buf,1,size,worldLoad); - test->load(buf); - }else{*/ - test->generate(SCREEN_WIDTH*2); - test->addHole(100,150); - //} + test->generate(SCREEN_WIDTH*2); + test->addHole(100,150); test->setBackground(BG_FOREST); test->addLayer(400); @@ -160,7 +144,7 @@ void initEverything(void){ test->addMob(MS_RABBIT,200,100); test->addMob(MS_BIRD,-500,500); - currentWorld->addObject(SWORD_WOOD, false, NULL, 500,200); + currentWorld->addObject(SWORD_WOOD, false, "", 500,200); currentWorld->addObject(FLASHLIGHT, true, "This looks important, do you want to pick it up?",600,200); /*currentWorld->addObject(DEBUG_ITEM, 500,200); |