add game times

This commit is contained in:
2025-02-11 11:45:19 +01:00
parent 5db3519a87
commit 3b5b7bf15b
5 changed files with 39 additions and 15 deletions

View File

@@ -1,7 +1,6 @@
#pragma once
#include <stdint.h>
#include <time.h>
#include "../window/audio.h"
#include "../window/colour8.h"
@@ -18,7 +17,9 @@ typedef struct {
row rows[ROWS];
audio_device* audio_device;
audio_data music;
time_t music_timer;
uint32_t timer_music;
uint32_t timer_update;
uint32_t timer_input;
uint16_t score;
shape_id nxt[7]; // the order of the shape ids that they should appear in
uint8_t curr_idx; // current shape index