diff --git a/.sonarlint/connectedMode.json b/.sonarlint/connectedMode.json new file mode 100644 index 0000000..c6f0c40 --- /dev/null +++ b/.sonarlint/connectedMode.json @@ -0,0 +1,4 @@ +{ + "sonarCloudOrganization": "adsgames", + "projectKey": "AdsGames_mini-jim" +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 3cd5c4d..ed9659a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -74,5 +74,9 @@ "thread": "cpp", "variant": "cpp" }, - "sonarlint.pathToCompileCommands": "${workspaceFolder}/compile_commands.json" + "sonarlint.pathToCompileCommands": "${workspaceFolder}/compile_commands.json", + "sonarlint.connectedMode.project": { + "connectionId": "adsgames", + "projectKey": "AdsGames_mini-jim" + } } diff --git a/src/Game.cpp b/src/Game.cpp index 15973fc..e5a220a 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -160,8 +160,9 @@ void Game::draw() { } } - lightPointsP1.push_back({static_cast(player1->getX() - cam_1.GetX() + 32), - static_cast(player1->getY() - cam_1.GetY() + 32)}); + lightPointsP1.push_back( + {static_cast(player1->getX() - cam_1.GetX() + 32), + static_cast(player1->getY() - cam_1.GetY() + 32)}); lightLayer.draw(lightPointsP1); } @@ -178,8 +179,8 @@ void Game::draw() { asw::draw::rectFill(20, 20, 320, 90, asw::util::makeColor(0, 0, 0)); if (!single_player) { - asw::draw::rectFill(20, (screenSize.y / 2) + 20, 320, - 90, asw::util::makeColor(0, 0, 0)); + asw::draw::rectFill(20, (screenSize.y / 2) + 20, 320, 90, + asw::util::makeColor(0, 0, 0)); } // Draw timer to screen