X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmain.cpp;h=2a49ad585f50c09a8d5e487dc9bba6adf5b06079;hb=d8d0982340fc10e5161251a4b50223fabc7b4431;hp=15073111afd3bc5e94356c149ece0edb61a37ee9;hpb=42e75a9b9341a7c0446e29431a08980eca7de8c1;p=l2e.git diff --git a/src/main.cpp b/src/main.cpp index 1507311..2a49ad5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -492,6 +492,12 @@ int main(int argc, char **argv) { map2.SetTriggers(triggers2, 1); map2.SetWidth(1); + triggers1[0].map = &map2; + triggers1[0].target = Vector(6, 2); + + triggers2[0].map = &map1; + triggers2[0].target = Vector(8, 3); + SDL_Surface *mapMaximImg(IMG_Load("test-data/maxim-map.png")); Sprite mapMaximSprite(mapMaximImg, 32, 64); SimpleAnimation mapMaximAnimation(&mapMaximSprite, (tileSize/walkSpeed) / 2 * 1000, 2, 0, 0, true);