working game

This commit is contained in:
2023-11-23 00:22:02 +01:00
parent ac8047cfb0
commit 353438ee5d
8 changed files with 3861 additions and 154 deletions

11
include/BinaryData.h Normal file
View File

@@ -0,0 +1,11 @@
#pragma once
namespace ph {
namespace data {
static const unsigned int NotesMP3_size = 164234;
const char* GetMP3Data();
} // namespace data
} // namespace ph

22
include/Ph.h Normal file
View File

@@ -0,0 +1,22 @@
#pragma once
namespace ph {
enum Note {
A = 0,
Bb,
B,
C,
Db,
D,
Eb,
E,
F,
Gb,
G,
Ab,
NoteCount,
};
} // namespace ph

17
include/PhAudio.h Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
#include "Ph.h"
namespace ph {
namespace audio {
int Init();
void PlayNote(Note note);
double NoteDuration();
void Destroy();
} // namespace audio
} // namespace ph

10
include/PhGui.h Normal file
View File

@@ -0,0 +1,10 @@
#pragma once
namespace ph {
namespace gui {
void Render();
void Init();
} // namespace gui
} // namespace ph