feat: Adding audio player + music to play

This commit is contained in:
gauvainboiche
2026-10-25 22:35:53 +01:00
parent 7a525d084a
commit dd4714f499
39 changed files with 850 additions and 81 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
# Music
Drop `.mp3` files here. The game's cassette player (bottom of the desk) plays them in random order.
- Only `.mp3` files are used. The file name becomes the title on the cassette: `03_Evening_Report.mp3` shows as "Evening Report".
- No rebuild needed. With Docker this folder is mounted read-only into the container; add files, then reload the page.
- `placeholder.mp3` is an empty file that keeps the folder in git and in Docker. Empty files are ignored, so the player shows "No tape" until a real track is added. You can delete it once you have music.
- Use music you have the right to use. Nothing here is shipped with the game.
Running without Docker: `go run ./server` reads `./music` by default; set `MUSIC_DIR` to use another folder.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 847 KiB

View File