FreeRTOS Tetris
tetrisConfig.h
Go to the documentation of this file.
1 
33 #ifndef TETRIS_CONFIG_H
34 #define TETRIS_CONFIG_H
35 
36 #include <math.h>
37 #include <stdio.h>
38 #include <stdlib.h>
39 #include <stdbool.h>
40 #include <time.h>
41 
42 #include <SDL2/SDL_scancode.h>
43 
44 #include "FreeRTOS.h"
45 #include "task.h"
46 #include "timers.h"
47 #include "semphr.h"
48 #include "queue.h"
49 
50 #include "TUM_Draw.h"
51 #include "TUM_Font.h"
52 #include "TUM_Event.h"
53 #include "TUM_Sound.h"
54 #include "TUM_Utils.h"
55 #include "TUM_FreeRTOS_Utils.h"
56 #include "TUM_Print.h"
57 
58 #include "enum.h"
59 #include "EmulatorConfig.h"
60 
65 #define USER_NAME_1 "tetrisdominator420"
66 #define USER_NAME_2 "xXTetrisGodXx"
67 #define USER_NAME_3 "iplaytetrislul"
68 #define USER_NAME_4 "isuckattetris69"
69 #define USER_NAME_5 "xX360NOSCOPEXx"
70 #define USER_NAME_6 "fischlipp"
71 #define DEFAULT_USER_NAME USER_NAME_1 // If the player does not select a user name, the default one is given
72 
78 #define FIGURE_SIZE 5
79 #define COLS 10
80 #define ROWS 16
81 #define SQUARE_WIDTH 40
82 #define NUMBER_OF_TETRIS_COLORS 6
83 #define BACKGROUND_COLOR ((unsigned int) 0x656565)
84 
86 
92 #define ENABLE_SOUND_EFFECTS 0
93 
94 
98 #define FALLING_SOUND "../resources/waveforms/user_waveforms/falling.wav"
99 #define GAME_OVER_SOUND "../resources/waveforms/user_waveforms/gameover.wav"
100 #define ROW_FULL_SOUND "../resources/waveforms/user_waveforms/linefull.wav"
101 #define THUMP_SOUND "../resources/waveforms/user_waveforms/thump.wav"
102 
108 #define BLUE_SQUARE "../resources/images/blue_square.png"
109 #define GREEN_SQUARE "../resources/images/green_square.png"
110 #define YELLOW_SQUARE "../resources/images/yellow_square.png"
111 #define RED_SQUARE "../resources/images/red_square.png"
112 #define LIGHT_BLUE_SQUARE "../resources/images/light_blue_square.png"
113 #define PURPLE_SQUARE "../resources/images/purple_square.png"
114 #define GREY_SQUARE "../resources/images/grey_square.png"
115 
118 
119 #endif // TETRIS_CONFIG_H
TUM_Sound.h
A simple interface to play wav files using the SDL2 Mixer library.
TUM_FreeRTOS_Utils.h
Small verbose utilities for showing FreeRTOS functionality.
TUM_Utils.h
Utilities required by other TUM_XXX files.
TUM_Print.h
A couple of drop in replacements for printf and fprintf to be used for thread safe printing when usin...
TUM_Font.h
Manages fonts used in TUM Draw.
EmulatorConfig.h
File containing some configuration for the FreeRTOS Emulator.
TUM_Event.h
Utilities required by other TUM_XXX files.
enum.h
File containing all global enumerations.