aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_defines.h
blob: 6f8de6545542a2f17f84e3ea9cca2c8f731d7dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   cub3d_defines.h                                    :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: rbousset <marvin@42.fr>                    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/02/15 15:40:25 by rbousset          #+#    #+#             */
/*   Updated: 2020/02/15 15:40:27 by rbousset         ###   ########lyon.fr   */
/*                                                                            */
/* ************************************************************************** */

#	ifndef CUB3D_DEFINES_H
#	define CUB3D_DEFINES_H

/*
** ====== KEYS ======
*/

#	ifndef FT_W_KEY
#	define FT_W_KEY		13
#	endif
#	ifndef FT_A_KEY
#	define FT_A_KEY		0
#	endif
#	ifndef FT_S_KEY
#	define FT_S_KEY		1
#	endif
#	ifndef FT_D_KEY
#	define FT_D_KEY		2
#	endif
#	ifndef FT_L_ARR_KEY
#	define FT_L_ARR_KEY	123
#	endif
#	ifndef FT_R_ARR_KEY
#	define FT_R_ARR_KEY	124
#	endif
#	ifndef FT_ESC_KEY
#	define FT_ESC_KEY	53
#	endif
#	ifndef FT_F1_KEY
#	define FT_F1_KEY	122
#	endif
#	ifndef FT_TAB_KEY
#	define FT_TAB_KEY	48
#	endif

/*
** ====== SCREEN ======
*/

#	ifndef FT_SCR_SIZE
#	define FT_SCR_SIZE "1920x1080"
#	endif

/*
** ====== ERROR MSG ======
*/

#	define FT_ERR_NOT_A_CUB			"given map is not a .cub"
#	define FT_ERR_MAP_L_L		"last line is invalid or contains illegal char"
#	define FT_ERR_UNFINISHED		"unexpected file end"
#	define FT_ERR_READ				"read error"
#	define FT_ERR_ILL_ENTRY			"illegal map entry"
#	define FT_ERR_ALR_SET			"duplicate entry"
#	define FT_ERR_MISS_ELEMENT		"Missing element:"
#	define FT_ERR_MISS_NORTH		"north side texture"
#	define FT_ERR_MISS_SOUTH		"south side texture"
#	define FT_ERR_MISS_EAST			"east side texture"
#	define FT_ERR_MISS_WEST			"west side texture"
#	define FT_ERR_MISS_SPRITE		"sprite texture"
#	define FT_ERR_MISS_RESOLUTION	"resolution"
#	define FT_ERR_MISS_FLOOR_C		"floor color"
#	define FT_ERR_MISS_CEIL_C		"floor color"
#	define FT_ERR_MISS_PLAYER_SPAWN	"player spawn"

#	endif