aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-04-28 11:46:17 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-04-28 11:46:17 -0400
commit62df9319f06bb52da8878522117ebe85fc5226b5 (patch)
treec5b2543bbce0463eeef5d0921e41765d8e6d9dc7 /main.cpp
parente2fb36d5da705278fb84246400945f430794d5e7 (diff)
parent68cb663a370747c325eeeeea66cca86803e4b8e5 (diff)
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index c92c3e6..c56871b 100644
--- a/main.cpp
+++ b/main.cpp
@@ -176,6 +176,15 @@ int main(int argc, char *argv[]){
glEnable(GL_MULTISAMPLE);
+ /*
+ * Load sprites used in the inventory menu. See src/inventory.cpp
+ */
+
+ initInventorySprites();
+ // load mouse texture, and other inventory textures
+ mouseTex = Texture::loadTexture("assets/mouse.png");
+
+
// read in all XML file names in the folder
std::vector<std::string> xmlFiles;
if (xmlFolder.empty())
@@ -206,9 +215,9 @@ int main(int argc, char *argv[]){
if (currentWorld == NULL)
UserError("Plot twist: The world never existed...?");
- // load mouse texture, and other inventory textures
- mouseTex = Texture::loadTexture("assets/mouse.png");
- initInventorySprites();
+ /**************************
+ **** GAMELOOP ****
+ **************************/
// the main loop, in all of its gloriousness..
gameRunning = true;