mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
add game music (very rudimentary and hacky)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user