summary refs log tree commit diff stats
path: root/firmware/src/main.cpp
blob: c512327abf0049ec6fc8c2b30f8541f9f6101b8f (plain) (blame)
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
28
29
30
31
#include <Arduino.h>

#include "inputs/input.h"

game::GameState state {};
ui::UI ui { /* pins */ };
inputs::Input input { /* pins */ };

void setup()
{
    state.init();
    input.init();
    ui.init();
}

void loop()
{
    delay(1);

    if (input.down_pressed()) {
        // TODO
    }

    // update game state
    // render game state

    // every second
    // automatically move down
    // update game state
    // render game state
}