https://github.com/jasmindreasond/sm64coopdx-tiny-utils
Tiny lib of useful API codes to start moding Sm64CoopDX.
https://github.com/jasmindreasond/sm64coopdx-tiny-utils
api lua mario mod music sm64ex-coop
Last synced: 10 months ago
JSON representation
Tiny lib of useful API codes to start moding Sm64CoopDX.
- Host: GitHub
- URL: https://github.com/jasmindreasond/sm64coopdx-tiny-utils
- Owner: JasminDreasond
- License: agpl-3.0
- Created: 2024-08-05T19:55:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T15:12:57.000Z (almost 2 years ago)
- Last Synced: 2025-02-25T17:49:03.851Z (over 1 year ago)
- Topics: api, lua, mario, mod, music, sm64ex-coop
- Language: Lua
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sm64CoopDX Tiny Utils
Tiny lib of useful API codes to start moding Sm64CoopDX.
https://github.com/coop-deluxe/sm64coopdx
## Song API
This API controls which songs you want to play in the game stages.
```lua
-- Force game stop the all default songs
_G.tsjSongs.setForceStopGameSongs(true)
-- Stop custom songs in the star selector
_G.tsjSongs.setStopSongOnStarSelector(true)
-- Add custom song into power up
_G.tsjSongs.addSong(-2, audio_stream_load('prototype.ogg'),
{ loopEnd = 441144, loopStart = 0.5, volume = 1.25, name = "Prototype" })
-- Add custom sound into the select star sound effect
_G.tsjSongs.addSelectStarSound('SAMPLE_STAR_SELECT_SIMS', audio_sample_load('star_select_sims.ogg'))
_G.tsjSongs.setSelectStarSound('SAMPLE_STAR_SELECT_SIMS')
-- Add custom sound into the mario lose sound effect (Beta)
_G.tsjSongs.addLoseSound('SAMPLE_LOSE', audio_sample_load('lose.ogg'))
_G.tsjSongs.setLoseSound('SAMPLE_LOSE')
-- Editing the inside castle theme
-- Add custom song (id)
_G.tsjSongs.addSong(6, audio_stream_load('strange_day.ogg'),
{ loopEnd = 5096766, loopStart = 0.5, volume = 1.25, name = "stange_day" })
_G.tsjSongs.disableDefaultSong(SEQ_LEVEL_INSIDE_CASTLE)
-- Add custom song (id, areaIndex, actNum, courseNum)
_G.tsjSongs.addSubSong(6, 3, 0, 0, audio_stream_load('strangetown_beta.ogg'),
{ loopEnd = 3175430, loopStart = 0.5, volume = 1, name = "Strangetown Prototype" })
```
### Coming Soon
Songs for each type of power up.
The song calms down when the mario sleeps.
Test the plant sleep theme moment.
Test in boss battle.
Detect infinity stairs song.