add game music (very rudimentary and hacky)

This commit is contained in:
2025-02-06 21:41:02 +01:00
parent 67e34a0cb0
commit 94ff2d200a
4 changed files with 10 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
#include <stdint.h>
#include "../window/audio.h"
#include "../window/colour8.h"
#include "tetromino/shapes.h"
@@ -14,6 +15,8 @@ typedef Colour8* Row;
typedef struct {
Row rows[ROWS];
AudioDevice const* audio_device;
AudioData music;
uint16_t score;
ShapeId nxt[7]; // the order of the shape ids that they should appear in
uint8_t curr_idx; // current shape index