update devlog.md

This commit is contained in:
lee2sman 2021-04-08 03:02:34 -04:00
parent d37a7e59e7
commit 3e7e99228d
1 changed files with 16 additions and 0 deletions

View File

@ -4,6 +4,22 @@ lee2sman
# Devlog
## 4/8/21
Worked out some more with the audio. Tried out using node to load all directories of audio and pick random selection track. I also bitcrushed all the tracks so they'd be tiny and mono. Maybe that was stupid. But they're all small files now. Currently, when you walk over an album on the map it just starts playing. And when you walk off, it stops. There's a bug that is triggered intermittently and crashes. Need to spend more time on it when I'm not tired.
## 4/4/21
Found troubadour node package for audio playback. Again, a bit too simple for my needs but I can modify it with a hack to allow looping playback. Doesn't allow modifying playback rate or reverse.
## 4/2/21
In a flash of inspiration, and because I'm coding this in the least-efficient, highest-improvisatory manner I seized on a new 'core mechanic' and decided to make this about collecting/creating new ambient noise music. The player is an itinerant sound collector and creator. Added random album / track generation.
Next spent several hours looking for a cross-platform node.js audio player that would also allow looping, or at least let me write my own loop. Surprisingly difficult to find. Why? Everything was 5-10 years old or didn't work well, having minimal primitive affordances.
Eventually found play-sound, but it was too simple for my needs.
## 4/1/21
I added ability to drop or eat items. The effect is almost exactly the same but with eating, the item is gone. With dropping, the item is left at the location the player is standing. You can eat any inventory item. Maybe I should add some funny saying or special abilities relating to this, like they each have some magic potion effect. I don't know. I've limited player to being able to hold up to 10 items, for convenience in keypress detection and max height of screen requirements).