Log In  
Follow
egli

I’m Mark Egli:
I made this game.
I beat these ZPG puzzles.

And nothing else.

[ :: Read More :: ]

Cart #two_songs-0 | 2019-08-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

This cart is a few things:

It’s a branching music demo featuring music from Robby Duguay’s excellent “Nine Songs in PICO-8” cart.

It’s a proof of concept for my PICO-8 dynamic music engine, which I have dubbed “Zero-Track”.

And finally, this cart is an invitation:

If you write music and would like to try out writing something non-linear for the PICO-8, feel free to drop me a line; it would be awesome to work with music written explicitly for this sort of use.

If you are working on a game and would like to include music dynamically tied to what's happening in the game, I'd love to see if my music engine could be a good fit for your game, as well.

Zero-Track

For those interested in using the Zero-Track engine, I'm happy to chat about it, but here's some light documentation as well:

First, you should include a call to ZERO:UPDATE() from your _UPDATE() or _UPDATE60() function.

Then, ZERO:PLAY() functions like MUSIC(), except that instead of a pattern number, it takes a special track object.

The track object needs to implement two functions:

  • TRACK:PATTERN() : for now, your track object should return a four byte number where each byte is the ID of one SFX (basically the format used for storing patterns in memory, minus the special flag bits which will be ignored if included in the return value). Nothing is stopping you at this point from building and poking the SFX you desire into memory, but helper functions for that aren’t included yet.
  • TRACK:NEXT() : return the track object that will provide the next pattern after the one provided by this track. Your track can return an independent object, or for flexibility can at this point just return itself and update its internal state so that the next call to PATTERN() will return a different value. This function is called “just in time” as the music engine needs the next pattern, so the returned track can be based on realtime game stats.

For now that's it! I'll add more functionality as it looks like I need it.

Thanks and enjoy!

–Mark

P#66709 2019-08-16 05:08 ( Edited 2019-08-16 05:23)

[ :: Read More :: ]

Cart #floppy_launcher-2 | 2022-11-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
7

I built a Raspberry Pi PICO-8 console that uses floppy disks, but SPLORE doesn't work great for browsing a floppy: you have to wait for the preview image of a cart to load before you can scroll past it. For a disk with more than one or two cartridges on it, this is a frustrating experience. Additionally, SPLORE is a little finicky about reloading the floppy contents if you swap out the disk.

To get around this, I boot this cartridge instead of booting into SPLORE, which provides a quicker floppy browsing experience and correctly picks up a new disk if you choose "reset cart" from the menu. It's a pretty rough hack, but I'm sharing it here in case anyone finds any pieces of it useful.

Obviously running it here on the BBS is an exercise in futility.

Revision 1 (2019-08-03)

Added: scrolling when there are more than 15 carts

Revision 2 (2022-11-27)

Added: ability to load subdirectories
Changed: update usage of ls and cd to account for changes in PICO-8 v0.2.2 and v0.2.5
Fixed: minor scroll indictor bug
Fixed: crash when loaded from the BBS or SPLORE

P#66238 2019-07-31 08:17 ( Edited 2022-11-28 06:10)

Follow Lexaloffle:          
Generated 2024-03-28 23:27:38 | 0.073s | Q:13