From: Ivan Hernandez Date: Fri, 17 Dec 2010 04:54:16 +0000 (-0600) Subject: added backgrounds and rarranged levels to be loaded from a new class. X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=f1e87029786af2fc9f7c5fe00540d826cf5e9ff4;p=IvanGame.git added backgrounds and rarranged levels to be loaded from a new class. Animations and Levels now stored in vectors. Updated constructors to pass names along and completed some name-related functions. --- diff --git a/ArtAssets/Backgrounds/abstract.jpg b/ArtAssets/Backgrounds/abstract.jpg new file mode 100644 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 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 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 index 0000000..1221949 --- /dev/null +++ b/LoadLevels.h @@ -0,0 +1,27 @@ +#ifndef LOADLEVELS +#define LOADLEVELS +#include +#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 levels; +}; +#endif