FreeRTOS Tetris
tetrisConfig.h File Reference

File containing some game configurations. More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
#include <SDL2/SDL_scancode.h>
#include "FreeRTOS.h"
#include "task.h"
#include "timers.h"
#include "semphr.h"
#include "queue.h"
#include "TUM_Draw.h"
#include "TUM_Font.h"
#include "TUM_Event.h"
#include "TUM_Sound.h"
#include "TUM_Utils.h"
#include "TUM_FreeRTOS_Utils.h"
#include "TUM_Print.h"
#include "enum.h"
#include "EmulatorConfig.h"
Include dependency graph for tetrisConfig.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

User Names
#define USER_NAME_1   "tetrisdominator420"
 
#define USER_NAME_2   "xXTetrisGodXx"
 
#define USER_NAME_3   "iplaytetrislul"
 
#define USER_NAME_4   "isuckattetris69"
 
#define USER_NAME_5   "xX360NOSCOPEXx"
 
#define USER_NAME_6   "fischlipp"
 
#define DEFAULT_USER_NAME   USER_NAME_1
 
Game window configuration
#define FIGURE_SIZE   5
 Maximum length/width of a Tetromino.
 
#define COLS   10
 Number of columns, that the board contains.
 
#define ROWS   16
 Number of rows, that the board contains.
 
#define SQUARE_WIDTH   40
 Pixel width/height of one square.
 
#define NUMBER_OF_TETRIS_COLORS   6
 Number of colors.
 
#define BACKGROUND_COLOR   ((unsigned int) 0x656565)
 Background color (can be any HEX color)
 
Sound effects.

Set ENABLE_SOUND_EFFECTS to 1 to enable sound effects. Sound effects may not be synchronized at all time.

#define ENABLE_SOUND_EFFECTS   0
 Whether sound effects should be enabled.
 
Sound effect files
#define FALLING_SOUND   "../resources/waveforms/user_waveforms/falling.wav"
 
#define GAME_OVER_SOUND   "../resources/waveforms/user_waveforms/gameover.wav"
 
#define ROW_FULL_SOUND   "../resources/waveforms/user_waveforms/linefull.wav"
 
#define THUMP_SOUND   "../resources/waveforms/user_waveforms/thump.wav"
 
Square image files
#define BLUE_SQUARE   "../resources/images/blue_square.png"
 
#define GREEN_SQUARE   "../resources/images/green_square.png"
 
#define YELLOW_SQUARE   "../resources/images/yellow_square.png"
 
#define RED_SQUARE   "../resources/images/red_square.png"
 
#define LIGHT_BLUE_SQUARE   "../resources/images/light_blue_square.png"
 
#define PURPLE_SQUARE   "../resources/images/purple_square.png"
 
#define GREY_SQUARE   "../resources/images/grey_square.png"
 

Detailed Description

File containing some game configurations.

Authors
Philipp Karg (phili.nosp@m.pp.k.nosp@m.arg@t.nosp@m.um.d.nosp@m.e)
Date
04.02.2021