added backgrounds and rarranged levels to be loaded from a new class.
authorIvan Hernandez <iturtleman128@gmail.com>
Fri, 17 Dec 2010 04:54:16 +0000 (22:54 -0600)
committerIvan Hernandez <iturtleman128@gmail.com>
Fri, 17 Dec 2010 04:54:16 +0000 (22:54 -0600)
Animations and Levels now stored in vectors. Updated constructors to
pass names along and completed some name-related functions.

ArtAssets/Backgrounds/abstract.jpg [new file with mode: 0644]
ArtAssets/Backgrounds/fantasy.jpg [new file with mode: 0644]
ArtAssets/Backgrounds/garden.jpg [new file with mode: 0644]
LoadLevels.h [new file with mode: 0644]

diff --git a/ArtAssets/Backgrounds/abstract.jpg b/ArtAssets/Backgrounds/abstract.jpg
new file mode 100644 (file)
index 0000000..2ec4dde
Binary files /dev/null and b/ArtAssets/Backgrounds/abstract.jpg differ
diff --git a/ArtAssets/Backgrounds/fantasy.jpg b/ArtAssets/Backgrounds/fantasy.jpg
new file mode 100644 (file)
index 0000000..2b66e87
Binary files /dev/null and b/ArtAssets/Backgrounds/fantasy.jpg differ
diff --git a/ArtAssets/Backgrounds/garden.jpg b/ArtAssets/Backgrounds/garden.jpg
new file mode 100644 (file)
index 0000000..e7dbb11
Binary files /dev/null and b/ArtAssets/Backgrounds/garden.jpg differ
diff --git a/LoadLevels.h b/LoadLevels.h
new file mode 100644 (file)
index 0000000..1221949
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef LOADLEVELS
+#define LOADLEVELS
+#include <vector>
+#include "fns.h"
+
+/// Add all levels and includes here
+#include "Level.h"
+#include "LevelWorld.h"
+
+using namespace std;
+
+
+/**                                                           
+  This is a container for creating all the levels in a neat location so as not to bulk up the Game class     
+                                                              
+  This class is tasked with the following:
+               - Creating all the levels.
+ */  
+class LoadLevels{
+public:
+       LoadLevels(SDL_Surface* screen){
+               levels.push_back(new LevelWorld(screen));
+       }
+
+       vector<Level*> levels;
+};
+#endif