nsnake/config.h

26 lines
520 B
C
Raw Normal View History

2021-09-18 03:35:02 +00:00
#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'
2021-09-18 05:02:33 +00:00
// Starting legnth of the snake
2021-09-18 03:35:02 +00:00
static const size_t starting_len = 15;
2021-09-18 05:02:33 +00:00
// Number of apples on the field
static const size_t n_apples = 10;
2021-09-18 03:35:02 +00:00
// Speed of snake (milliseconds between moves)
static const int screen_speed = 150;
// Character for each snake segment
static const char snake_ch = '#';
2021-09-18 05:02:33 +00:00
// Character for apples
static const char apple_ch = '*';
2021-09-18 03:35:02 +00:00
#endif