nsnake/config.h
2021-09-18 00:02:33 -05:00

26 lines
520 B
C

#ifndef CONFIG_H
#define CONFIG_H
// Keybinds
#define up_key 'k'
#define down_key 'j'
#define right_key 'l'
#define left_key 'h'
#define quit_key 'q'
// Starting legnth of the snake
static const size_t starting_len = 15;
// Number of apples on the field
static const size_t n_apples = 10;
// Speed of snake (milliseconds between moves)
static const int screen_speed = 150;
// Character for each snake segment
static const char snake_ch = '#';
// Character for apples
static const char apple_ch = '*';
#endif