Initial commit.
[gobie.git] / examplegame.cpp
blobd8e8fdac19c705386f1a64d6b20f340b7c338849
1 /*
2 * This is a template for how a game will look. We should design the API around
3 * this.
5 * GWindow is a Gobie Window.
6 * GImage is a Gobie Image.
7 */
9 class GameWindow : public GWindow
11 GImage bg; // This might or might not need to be a scoped_ptr
13 public:
14 GameWindow() : Window(640, 480, false) // width, height, fullscreen
16 setCaption("Gobie Game");
17 bg.load(graphics(), "bg.png");
20 void update()
24 void draw() const
26 bg.draw(0, 0);
30 int main()
32 GameWindow window;
33 window.show();