very early prototype of a spaceshooter in SFML
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.hpp 477B

1234567891011121314151617181920212223
  1. #include <string>
  2. #include <SFML/System.hpp>
  3. #include <SFML/Window.hpp>
  4. #pragma once
  5. namespace Game {
  6. enum class GameState { Game, MainMenu, Exit };
  7. // configuration
  8. const int xResolution = 1150;
  9. const int yResolution = 750;
  10. const int colorDepth = 32;
  11. const std::string gameTitle = "Proto4";
  12. const sf::Time updateTimestep = sf::seconds(0.0004);
  13. const float middleX = xResolution / 2;
  14. const float middleY = yResolution / 2;
  15. }