Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KhanShaheb34 committed Jan 23, 2019
2 parents efae45d + ebdb992 commit f381871
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Header/physX.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ float velocityY = 0;
float accelerationX = 0;
float accelerationY = 0;
float gravity = 1.4;
int pressUpCount=0;
int pressUpCount = 0;

void updateMovement()
{
Expand Down
2 changes: 1 addition & 1 deletion Header/sceneManger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

int updateScene() {
RenderWindow app(VideoMode(1200,800), "Pos:", Style::Close);
app.setFramerateLimit(60);
app.setFramerateLimit(45);
app.setVerticalSyncEnabled(false);
currentScene = mainMenu;
Font AmaticB;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tao's Adventure [![CodeFactor](https://www.codefactor.io/repository/github/shaswata56/taos-adventure/badge)](https://www.codefactor.io/repository/github/shaswata56/taos-adventure)

Project: 2 | SWE-1/2 | Group: 17
Project: 2 | SUST SWE-1/2 | Group: 17

[Shakirul Hasan Khan](https://github.com/KhanShaheb34) – 2017831034

Expand Down
8 changes: 2 additions & 6 deletions Scenes/menu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,10 @@ void menu(RenderWindow &app){
menuStarted = false;
mainbg.play();
}
// Mouse pointer location viewer
string str;
str.append(to_string(Mouse::getPosition(app).x));
str.append(",");
str.append(to_string(Mouse::getPosition(app).y));
str.append("Taos-Adventure");
app.setTitle(str);



if(Mouse::isButtonPressed(Mouse::Left)){
Vector2i mousePosition = Mouse::getPosition(app);
if(mousePosition.x >= 545 && mousePosition.x <= 690 && mousePosition.y >= 400 && mousePosition.y <= 550)
Expand Down
3 changes: 1 addition & 2 deletions Source/Taos-Adventure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

int main()
{
if(updateScene() == 1)
main();
updateScene();
return 0;
}
2 changes: 2 additions & 0 deletions osx-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
g++ -framework sfml-window -framework sfml-graphics -framework sfml-system -framework sfml-audio Source/Taos-Adventure.cpp -o Taos-Adventure

0 comments on commit f381871

Please # to comment.