Skip to content

Commit

Permalink
chore: connect sonar vscode (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
alegemaate authored May 25, 2024
1 parent 50dc849 commit d644bc4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .sonarlint/connectedMode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"sonarCloudOrganization": "adsgames",
"projectKey": "AdsGames_mini-jim"
}
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
9 changes: 5 additions & 4 deletions src/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ void Game::draw() {
}
}

lightPointsP1.push_back({static_cast<int>(player1->getX() - cam_1.GetX() + 32),
static_cast<int>(player1->getY() - cam_1.GetY() + 32)});
lightPointsP1.push_back(
{static_cast<int>(player1->getX() - cam_1.GetX() + 32),
static_cast<int>(player1->getY() - cam_1.GetY() + 32)});

lightLayer.draw(lightPointsP1);
}
Expand All @@ -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
Expand Down

0 comments on commit d644bc4

Please sign in to comment.