2023-09-25 17:17:17 -04:00
|
|
|
#ifndef CLI_DEFINE_H__
|
|
|
|
#define CLI_DEFINE_H__
|
2021-09-24 10:15:43 -04:00
|
|
|
|
2023-09-30 18:33:23 -04:00
|
|
|
//#define SFML_STATIC true
|
|
|
|
|
2021-10-11 11:37:58 -04:00
|
|
|
#include <iostream>
|
2023-09-25 08:23:52 -04:00
|
|
|
#include <chrono>
|
2023-09-23 17:15:35 -04:00
|
|
|
#include <iomanip>
|
2023-10-04 15:01:48 -04:00
|
|
|
#include <GL/glew.h>
|
2023-09-27 11:24:41 -04:00
|
|
|
#include <SFML/Window.hpp>
|
|
|
|
#include <SFML/Graphics.hpp>
|
2023-09-25 17:17:17 -04:00
|
|
|
#include "../SQCSim-common/define.h"
|
2021-09-24 10:15:43 -04:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include <gl/GL.h>
|
|
|
|
#include <gl/GLU.h>
|
2023-10-04 15:01:48 -04:00
|
|
|
#else
|
|
|
|
#include <GL/gl.h>
|
|
|
|
#include <GL/glu.h>
|
|
|
|
#include <climits>
|
2021-09-24 10:15:43 -04:00
|
|
|
#endif
|
|
|
|
|
2023-09-25 17:17:17 -04:00
|
|
|
#define SRV_ADDR "127.0.0.1"
|
|
|
|
#define COUNTDOWN 300
|
2021-11-26 11:59:02 -05:00
|
|
|
|
2023-10-16 12:02:37 -04:00
|
|
|
#define BULLET_UPDATES_PER_FRAME 20
|
|
|
|
|
2023-10-16 17:36:04 -04:00
|
|
|
#define BASE_WIDTH 640
|
|
|
|
#define BASE_HEIGHT 480
|
2023-08-28 16:23:34 -04:00
|
|
|
|
2023-12-05 13:44:54 -05:00
|
|
|
|
2023-11-20 14:28:54 -05:00
|
|
|
#define ANIME_PATH_JUMP "./media/textures/AssetOtherPlayer/FinalPNGJumping/"
|
|
|
|
#define ANIME_PATH_STILL "./media/textures/AssetOtherPlayer/FinalPNGStanding/"
|
2023-12-05 13:44:54 -05:00
|
|
|
|
|
|
|
//1 = jump shoot sans anim, 2 = jump shoot avec anim
|
|
|
|
#define ANIM_PATH_JSHOOT1 "./media/textures/AssetOtherPlayer/FinalPNGJumpingShooting/"
|
|
|
|
#define ANIM_PATH_JSHOOT2 "./media/textures/AssetOtherPlayer/FinalPNGJumpingShooting/ShootingJump/"
|
|
|
|
//1 = shoot sans anim, 2 = shoot avec anim
|
|
|
|
#define ANIM_PATH_SSHOOT1 "./media/textures/AssetOtherPlayer/FinalPNGShooting/"
|
|
|
|
#define ANIM_PATH_SSHOOT2 "./media/textures/AssetOtherPlayer/FinalPNGShooting/Shooting/"
|
|
|
|
|
2023-08-28 16:23:34 -04:00
|
|
|
#define TEXTURE_PATH "./media/textures/"
|
|
|
|
#define SHADER_PATH "./media/shaders/"
|
|
|
|
#define AUDIO_PATH "./media/audio/"
|
|
|
|
#define CHUNK_PATH "./media/chunks/"
|
2023-11-20 15:40:43 -05:00
|
|
|
#define BOOSTER_TEXTURE_PATH "./media/textures/Booster/"
|
2021-09-24 10:15:43 -04:00
|
|
|
|
2023-12-03 00:15:18 -05:00
|
|
|
enum GameState {
|
|
|
|
MAIN_MENU,
|
|
|
|
SPLASH,
|
2023-12-06 13:14:51 -05:00
|
|
|
LOBBY,
|
2023-12-04 13:02:28 -05:00
|
|
|
OPTIONS,
|
2023-12-03 00:15:18 -05:00
|
|
|
PLAY,
|
|
|
|
PAUSE
|
|
|
|
};
|
|
|
|
|
2023-12-01 13:48:48 -05:00
|
|
|
enum Resolution {
|
|
|
|
HD = 0, // 1280x720 (High Definition)
|
|
|
|
FHD, // 1920x1080 (Full HD)
|
|
|
|
QHD, // 2560x1440 (Quad HD)
|
|
|
|
UHD // 3840x2160 (Ultra HD)
|
|
|
|
};
|
|
|
|
|
2021-09-24 10:15:43 -04:00
|
|
|
#endif // DEFINE_H__
|