vectozavr-shooter/engine/Consts.h

61 lines
1.7 KiB
C
Raw Normal View History

2021-10-09 13:41:12 +03:00
//
// Created by Иван Ильин on 07.10.2021.
//
#ifndef SHOOTER_CONSTS_H
#define SHOOTER_CONSTS_H
2021-10-31 11:39:08 +03:00
2021-10-16 20:22:55 +03:00
#include <SFML/Graphics.hpp>
2021-10-31 11:39:08 +03:00
2021-10-28 16:58:02 +03:00
#include "Vec2D.h"
2021-10-09 13:41:12 +03:00
namespace Consts {
2021-10-16 20:22:55 +03:00
const int STANDARD_SCREEN_WIDTH = 1920;
2021-11-09 22:54:20 +03:00
const int STANDARD_SCREEN_HEIGHT = 1080;
2021-10-16 20:22:55 +03:00
const sf::Color BACKGROUND_COLOR = sf::Color(255, 255, 255);
const std::string PROJECT_NAME = "engine";
2021-10-17 10:27:19 +03:00
const bool USE_LOG_FILE = true;
2021-10-30 12:13:22 +03:00
const bool USE_OPEN_GL = true;
2021-11-03 12:49:07 +03:00
const bool SHOW_DEBUG_INFO = false;
2021-10-30 12:39:44 +03:00
const bool SHOW_FPS_COUNTER = true;
2021-10-16 20:22:55 +03:00
2021-10-09 13:41:12 +03:00
const double PI = 3.14159265358979323846264338327950288;
const double EPS = 0.000001;
const double EPA_EPS = 0.0001;
const double RAY_CAST_MAX_DISTANCE = 10000;
2021-10-16 20:22:55 +03:00
const std::string THIN_FONT = "engine/fonts/Roboto-Thin.ttf";
const std::string MEDIUM_FONT = "engine/fonts/Roboto-Medium.ttf";
2021-10-31 11:39:08 +03:00
const double LARGEST_TIME_STEP = 1.0 / 15.0;
2021-10-16 20:22:55 +03:00
const double TAP_DELAY = 0.2;
2021-10-28 16:58:02 +03:00
const Vec2D BEZIER[2] = {Vec2D{0.8, 0}, Vec2D{0.2, 1}};
const unsigned NETWORK_VERSION = 3U;
2021-10-25 14:51:34 +03:00
const int NETWORK_TIMEOUT = 5U;
2021-10-16 20:22:55 +03:00
const int NETWORK_WORLD_UPDATE_RATE = 30;
2021-10-31 11:39:08 +03:00
const double NETWORK_RELIABLE_RETRY_TIME = 1.0 / 20;
2021-10-17 10:21:10 +03:00
const uint16_t NETWORK_MAX_CLIENTS = 64;
2022-02-23 17:29:42 +03:00
const sf::Color WHITE_COLORS[] = {
sf::Color(137, 135, 222), // blue
sf::Color(195, 155, 209), // pink
sf::Color(201, 137, 137), // red
sf::Color(116, 204, 135), // green
sf::Color(201, 171, 137), // orange
};
const sf::Color DARK_COLORS[] = {
sf::Color(16, 18, 69), // blue
sf::Color(77, 0, 62), // pink
sf::Color(99, 20, 20), // red
sf::Color(12, 46, 9), // green
sf::Color(97, 70, 51), // orange
};
2021-10-09 13:41:12 +03:00
}
#endif //SHOOTER_CONSTS_H