Commits

Hrvoje Abramovic committed 8b9e79b

Added credits layer and temporarly credits png. Tried to make credits move on several ways but with no effect.

Comments (0)

Files changed (2)

credits.png

Added
New image
 extern bool gRunning;
 extern SDL_Surface * gScreen;
 
+
 GM_Credits::GM_Credits()
 {
     Layer *layer(new Layer("background.png", gScreen->w / 2,gScreen->h / 2));
     this->layer.push_back(layer);
 
-    Button *exitButton(new ExitButton("exit.png", 130, 335));
+    Layer *layer2(new Layer("credits.png",gScreen->w / 2,gScreen->h / 2));
+    this->layer.push_back(layer2);
+
+    Button *exitButton(new ExitButton("exitbutton.png", 130, 335));
     this->buttons.push_back(exitButton);
 
 
         itr++)
     {
         (*itr)->paintSelf();
+
     }
 
     for(std::vector<Button*>::iterator it = this->buttons.begin();
     }
 }
 
+
+