From: Daniel Karbach Date: Wed, 3 Oct 2012 13:55:43 +0000 (+0200) Subject: added map sprites for 3 other heroes X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=7b70f3c1609fb2b783bd932280c98dbc44f5f746;p=l2e.git added map sprites for 3 other heroes --- diff --git a/src/main.cpp b/src/main.cpp index 20eb55b..745ec4b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -336,6 +336,24 @@ int main(int argc, char **argv) { mapMaxim.SetAnimation(&mapMaximAnimation); mapMaxim.Position() = Vector(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 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 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 index 0000000..3b5ce52 Binary files /dev/null and b/test-data/selan-map.png differ