extern unsigned int loops; // main.cpp
extern unsigned int tickCount; // main.cpp
+extern std::string xmlFolder;
+
GLuint waterTex;
std::vector<int (*)(NPC *)> AIpreload; // A dynamic array of AI functions that are being preloaded
void Player::sspawn(float x,float y){
unsigned int i;
uint count;
- std::ifstream in ("storyXML/main.dat",std::ios::in | std::ios::binary);
+ std::ifstream in (std::string(xmlFolder + "main.dat"),std::ios::in | std::ios::binary);
spawn(x,y);
if(in.good()){
return NULL;
std::cout << "File path: " << path << std::endl;
- currentXML = std::string("storyXML/" + path);
+ currentXML = std::string(xmlFolder + path);
std::cout << "Full file path: " << currentXML << std::endl;
xml.LoadFile(currentXML.c_str());
--- /dev/null
+<?xml version="1.0"?>
+<World>
+
+ <style background="0" bgm="assets/music/embark.wav" folder="assets/style/classic/" />
+ <generation type="Random" width="500" />
+ <time>12000</time>
+
+ <hill peakx="0" peaky="1000" width="50" />
+
+</World>