summary refs log tree commit diff stats
path: root/titlestate.h
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2013-08-27 11:39:37 -0400
committerStarla Insigna <starla4444@gmail.com>2013-08-27 11:39:37 -0400
commitffd335aca284c286030e2b26f1a02a0441748f46 (patch)
treebcc1c241621fe159ae7ef178122fb41c5f23eb00 /titlestate.h
parentd47da18958b5214def5127e201f60668c566d9bb (diff)
downloadmazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.tar.gz
mazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.tar.bz2
mazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.zip
Started rewriting game from scratch with SDL2
Only the title screen is currently implemented
Diffstat (limited to 'titlestate.h')
-rw-r--r--titlestate.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/titlestate.h b/titlestate.h index 6519ecf..11d16d7 100644 --- a/titlestate.h +++ b/titlestate.h
@@ -1,16 +1,12 @@
1#include <SDL.h>
2#include "state.h"
3
1#ifndef TITLESTATE_H 4#ifndef TITLESTATE_H
2#define TITLESTATE_H 5#define TITLESTATE_H
3 6
4class TitleState : public State { 7class TitleState : public State {
5 public: 8 public:
6 TitleState(); 9 State* operator() (SDL_Renderer* renderer);
7 void input(SDL_keysym key);
8 void render(SDL_Surface* screen);
9
10 private:
11 SDL_Surface* background;
12 SDL_Surface* pointer;
13 int selection;
14}; 10};
15 11
16#endif 12#endif \ No newline at end of file