Skip to content

Commit

Permalink
fixed narrowing + removed cout & terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebrn committed Feb 4, 2023
1 parent 145074a commit d6f8be8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CPP := g++
CPPFLAGS := -I include/ -L lib/
CPPFLAGS := -I include/ -L lib/ -mwindows
LIBFLAGS := -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
SRC_FILES := src/*.cpp

Expand Down
2 changes: 1 addition & 1 deletion src/Tube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Tube::Tube(float x_pos) {

_top_rect.setSize({100, 600});
_top_rect.setFillColor(Colours::surround);
_middle_rect.setSize({100 / 3, _gap});
_middle_rect.setSize({100 / 3, static_cast<float>(_gap)});
_middle_rect.setFillColor(Colours::list[_middle_colour]);
_bottom_rect.setSize({100, 600});
_bottom_rect.setFillColor(Colours::surround);
Expand Down
4 changes: 1 addition & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ int main() {

}

std::cout << tubes.size() << "\n";

window.clear(Colours::background);

draw_surround(window);
Expand All @@ -171,7 +169,7 @@ int main() {
text.setString(std::to_string(score));
text.setCharacterSize(32);
text.setFillColor(Colours::background);
text.setOrigin({text.getGlobalBounds().width / 2.0, text.getGlobalBounds().height / 2.0});
text.setOrigin({text.getGlobalBounds().width / 2.0f, text.getGlobalBounds().height / 2.0f});
text.setPosition({400, 20});
window.draw(text);

Expand Down

0 comments on commit d6f8be8

Please sign in to comment.