FreeRTOS Tetris
Config Module

Module that allows some configurations of the game. More...

Collaboration diagram for Config Module:

Emulator Configuration

#define WINDOW_TITLE   "FreeRTOS Tetris"
 Window title.
 
#define SCREEN_WIDTH   700
 Window width.
 
#define SCREEN_HEIGHT   640
 Window height.
 
#define RESOURCES_DIRECTORY   "../resources"
 Directory path for resources, e.g. images.
 
#define FONTS_DIRECTORY   "../resources/fonts"
 Direcotory path for fonts.
 
#define GAMEBOY_FONT   "Early GameBoy.ttf"
 Gameboy Font (default Font)
 
#define DEFAULT_FONT   GAMEBOY_FONT
 Default Font.
 
#define DEFAULT_FONT_SIZE   15
 Default Font Size.
 
#define configFPS_LIMIT   1
 
#define configFPS_LIMIT_RATE   50
 
#define mainGENERIC_PRIORITY   (tskIDLE_PRIORITY)
 
#define mainGENERIC_STACK_SIZE   ((unsigned short)2560)
 

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

Module that allows some configurations of the game.

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