remove demo game

This commit is contained in:
2026-05-25 21:28:17 +02:00
parent b1ea3447a8
commit 76f910ab36
75 changed files with 115 additions and 815 deletions

30
asset.audio.go Normal file
View File

@@ -0,0 +1,30 @@
package pncdsl
// AudioPlayer is a stub for music/sfx playback. The action constructors
// (PlayMusic/PlaySound/StopMusic) call through here; on this milestone we
// just log the request so the game runs without an audio device.
type AudioPlayer struct {
currentMusic string
}
func NewAudioPlayer() *AudioPlayer { return &AudioPlayer{} }
func (a *AudioPlayer) PlayMusic(name string) {
if a.currentMusic == name {
return
}
a.currentMusic = name
logf("audio.PlayMusic %q", name)
}
func (a *AudioPlayer) StopMusic() {
if a.currentMusic == "" {
return
}
logf("audio.StopMusic (was %q)", a.currentMusic)
a.currentMusic = ""
}
func (a *AudioPlayer) PlaySound(name string) {
logf("audio.PlaySound %q", name)
}