Skip to content

Commit

Permalink
Changed deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nanda-gopal-sb committed Nov 21, 2024
1 parent 95f8305 commit 9135be7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ out
.idea
.vs
.vscode
.clang-format
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define COLUMNS 8
#define ROWS 8

void drawRec(sf::RenderWindow &window) {
void drawRec(sf::RenderWindow& window) {
sf::RectangleShape cell_shape(sf::Vector2f(CELL_SIZE - 3, CELL_SIZE - 3));
for (int i = 0; i < ROWS; i++) {
for (int j = 0; j < COLUMNS; j++) {
Expand Down Expand Up @@ -35,6 +35,7 @@ int main() {
case sf::Mouse::Left: {
int mouse_x = sf::Mouse::getPosition(window).x / CELL_SIZE;
int mouse_y = sf::Mouse::getPosition(window).y / CELL_SIZE;
std::cout << mouse_x << " " << mouse_y << "\n";
std::cout << "clicked" << "\n";
}
window.clear();
Expand Down

0 comments on commit 9135be7

Please sign in to comment.