-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
27 lines (21 loc) · 818 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <Arduino.h>
const byte dinoX = 1;
const byte timeInAir = 2;
const byte chanceOfCacti = 3; // 1/3 chance
const byte minCactiGap = 1;
// Allows us to get specific button pressed if you have the hardware / shield
#define USE_RESISTOR_LADDER
// Set a seed for the random number generator
// Comment to read random value from analog pins 1 and 2 and to multiply them
// #define CONSTANT_SEED 1
// Logs the distance to the next cacti on serial
// Every game tick a number will be printed to serial
// -1 means you are jumping
// 0 means you are dead (on a cacti)
#define SERIAL_DISTANCE_CACTI
// Automatically play the game for us
// Very fun to watch
// #define AUTO_PLAY
// The default tick delay starts at 500
// You might want to uncomment if you are enabling auto play
// #define STARTING_TICK_DELAY 50