Retro Gadgets

Retro Gadgets

Not enough ratings
VixenBytez
   
Award
Favorite
Favorited
Unfavorite
Gadget
Category: audio, code, assets
Tags: protect
File Size
Posted
20.889 MB
14 Feb, 2024 @ 1:27pm
1 Change Note ( view )

Subscribe to download
VixenBytez

Description
A small device that plays sound bytes from a cartridge, as well as captioning them. Code isn't the cleanest as I just made it on a whim, but it should do.

-- Included bytez include --
Bing Chilling (Captions are romanized version, not in Chinese script)
Peitsche (Klaus Kinsky going crazy about some bible verse or something)
Riff (Bad To The Bone riff, with the tabs written, I'm no guitar player though so idk if it's correct)

(Batteries included)

If you want to make your own, just make sure to append the CPU name (CPU4, CPU5, etc) on the top of the main script of the CPU that's in your custom cartridge, like this

-- lua
CPU4 = "nameOfSound"
--
following the format of the other CPUX

then, import your sound (it has to be mp3), and make a file with the same name as "nameOfSound" with this format

-- lua
subtitles = {
{
startAt = 0, -- seconds where caption starts
endAt = 1, -- seconds where caption ends/disappears
content = "text of what is said during period startAt and endAt"
}
}

return subtitles
--
for captions, the gadget will crash otherwise, and you'd defeat the purpose of the screen if you didn't do that.

Captions are synchronized to the AudioChip, so you can pause, or do whatever, and the subtitles should stay accurate, and pause accordingly.

The sounds are purposely "bitcrushed" to make it sound funnier.