X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain.cpp;h=f4f696568f7c09cfd0b41038758d9551031813d7;hb=b8b3c5eb15fe990182e76a738953f444ccfbe06c;hp=75bba636eebc5ddae6380c838963b71cf7052ba1;hpb=e11a18caf76cbc409573b7b05bb3b7f48c607e81;p=l2e.git diff --git a/src/main.cpp b/src/main.cpp index 75bba63..f4f6965 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -394,7 +394,7 @@ int main(int argc, char **argv) { areas[1].SetWidth(8); Trigger triggers[1]; - triggers[0].SetTilePosition(Vector(2, 0)); + triggers[0].SetTilePosition(Vector(8, 3)); SDL_Surface *tilesetImg(IMG_Load("test-data/tileset.png")); Sprite tileset(tilesetImg, tileSize, tileSize); @@ -496,6 +496,10 @@ int main(int argc, char **argv) { app.Buttons().MapKey(SDLK_SPACE, Input::SELECT); app.Buttons().MapKey(SDLK_RSHIFT, Input::SHOULDER_RIGHT); app.Buttons().MapKey(SDLK_LSHIFT, Input::SHOULDER_LEFT); + app.Buttons().MapKey(SDLK_1, Input::DEBUG_1); + app.Buttons().MapKey(SDLK_2, Input::DEBUG_2); + app.Buttons().MapKey(SDLK_3, Input::DEBUG_3); + app.Buttons().MapKey(SDLK_4, Input::DEBUG_4); app.Run(); return 0;