Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
PierceLBrooks committed Apr 4, 2022
1 parent 6236cdf commit 804ba6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Android/Trunk/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int main(int argc, char *argv[])
unsigned int foci = fociBase;

float score = 0.0f;
float timeGainBase = 3.0f;
float timeGainBase = 30.0f;
float timeLost = 0.0f;
float timeLeftBase = timeGainBase*2.0f;
float timeLeft = timeLeftBase*powf(timeLeftBase/timeGainBase, 2.0f);
Expand Down Expand Up @@ -252,7 +252,7 @@ int main(int argc, char *argv[])
}
}
sf::sleep(sf::milliseconds(100));
first = false;
first = false;
clock.restart();
}
timeLeft -= deltaTime;
Expand Down
5 changes: 5 additions & 0 deletions Project/circleville/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ int main(int argc, char** argv)
window.close();
}
break;
case sf::Event::Resized:
view.setSize(static_cast<float>(event.size.width), static_cast<float>(event.size.height));
view.setCenter(view.getSize()*0.5f);
window.setView(view);
break;
case sf::Event::LostFocus:
active = false;
background = sf::Color::Black;
Expand Down

0 comments on commit 804ba6b

Please sign in to comment.