]> git.localhorst.tv Git - l2e.git/commitdiff
added map sprites for 3 other heroes
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 3 Oct 2012 13:55:43 +0000 (15:55 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 3 Oct 2012 13:55:43 +0000 (15:55 +0200)
src/main.cpp
test-data/dekar-map.png [new file with mode: 0644]
test-data/guy-map.png [new file with mode: 0644]
test-data/selan-map.png [new file with mode: 0644]

index 20eb55b4adf4aa9f61dbd2cb9ea91da21579817a..745ec4bcdda5ddce953ad513f6f15dfd28ca80e7 100644 (file)
@@ -336,6 +336,24 @@ int main(int argc, char **argv) {
                mapMaxim.SetAnimation(&mapMaximAnimation);
                mapMaxim.Position() = Vector<float>(80, 128);
 
+               SDL_Surface *mapSelanImg(IMG_Load("test-data/selan-map.png"));
+               Sprite mapSelanSprite(mapSelanImg, 32, 64);
+               SimpleAnimation mapSelanAnimation(&mapSelanSprite, (tileSize/walkSpeed) / 2 * 1000, 2, 0, 0, true);
+               Entity mapSelan;
+               mapSelan.SetAnimation(&mapSelanAnimation);
+
+               SDL_Surface *mapGuyImg(IMG_Load("test-data/guy-map.png"));
+               Sprite mapGuySprite(mapGuyImg, 32, 64);
+               SimpleAnimation mapGuyAnimation(&mapGuySprite, (tileSize/walkSpeed) / 2 * 1000, 2, 0, 0, true);
+               Entity mapGuy;
+               mapGuy.SetAnimation(&mapGuyAnimation);
+
+               SDL_Surface *mapDekarImg(IMG_Load("test-data/dekar-map.png"));
+               Sprite mapDekarSprite(mapDekarImg, 32, 64);
+               SimpleAnimation mapDekarAnimation(&mapDekarSprite, (tileSize/walkSpeed) / 2 * 1000, 2, 0, 0, true);
+               Entity mapDekar;
+               mapDekar.SetAnimation(&mapDekarAnimation);
+
                InitScreen screen(width, height);
 
                app::State *state(0);
diff --git a/test-data/dekar-map.png b/test-data/dekar-map.png
new file mode 100644 (file)
index 0000000..0b2d487
Binary files /dev/null and b/test-data/dekar-map.png differ
diff --git a/test-data/guy-map.png b/test-data/guy-map.png
new file mode 100644 (file)
index 0000000..9eefdff
Binary files /dev/null and b/test-data/guy-map.png differ
diff --git a/test-data/selan-map.png b/test-data/selan-map.png
new file mode 100644 (file)
index 0000000..3b5ce52
Binary files /dev/null and b/test-data/selan-map.png differ