nsnake/config.h

28 lines
539 B
C

#ifndef CONFIG_H
#define CONFIG_H
#include <stddef.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 = 3;
// Number of apples on the field
static const size_t n_apples = 5;
// 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