]> git.localhorst.tv Git - l2e.git/blobdiff - src/main.cpp
added frames for status menu
[l2e.git] / src / main.cpp
index b06b5c7533b1e463460461bafe613af016acf743..075ce1e0bb5861e534bfedb722768a3ea18f502a 100644 (file)
@@ -86,8 +86,8 @@ using std::string;
 using std::vector;
 
 int main(int argc, char **argv) {
-       const int width = 800;
-       const int height = 480;
+       const int width = 512;
+       const int height = 448;
 
        const float walkSpeed = 128.0f;
 
@@ -284,6 +284,9 @@ int main(int argc, char **argv) {
                graphics::Sprite statusLabels(IMG_Load("test-data/status-labels.png"), 32, 16);
                menuResources.statusLabels = &statusLabels;
 
+               graphics::Frame statusFrame(IMG_Load("test-data/status-frame.png"), 32, 32, 32, 32);
+               menuResources.statusFrame = &statusFrame;
+
                InitScreen screen(width, height);
 
                app::State *state(0);