Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thejustinwalsh/defold-zzfx
ZzFX extension for Defold
https://github.com/thejustinwalsh/defold-zzfx
defold defold-native-extension game lua
Last synced: 2 months ago
JSON representation
ZzFX extension for Defold
- Host: GitHub
- URL: https://github.com/thejustinwalsh/defold-zzfx
- Owner: thejustinwalsh
- License: mit
- Created: 2021-10-10T11:26:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-25T12:41:23.000Z (about 3 years ago)
- Last Synced: 2024-10-09T13:06:33.207Z (4 months ago)
- Topics: defold, defold-native-extension, game, lua
- Language: C++
- Homepage: https://thejustinwalsh.com/defold-zzfx/
- Size: 2.42 MB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-defold - ZzFX
README
# ZzFX Defold Extension
> Zuper Zmall Zound Zynth### [ZzFX Sound Designer](https://killedbyapixel.github.io/ZzFX/)
Port of [ZzFX](https://killedbyapixel.github.io/ZzFX/) for the [Defold Game Engine](https://defold.com)
## Defold Setup
Open your game.project file and in the dependencies field under project add:
```
https://github.com/thejustinwalsh/defold-zzfx/archive/main.zip
```Require the zzfx.api script and play sound effects like so:
```lua
local zzfx_api = require("zzfx.api")
local zzfx = zzfx_api.playzzfx(1,.05,448,.01,.1,.3,3,.39,-0.5,0,0,0,0,0,.2,.1,.08,1,0,0)
```### Caveats
- Limited to 32 unique zzfx with 32 intances of each playing simualtaniously
- This will be configurable in the future
- The code `local zzfx = zzfx_api.play` is for compatibility with copy & paste from the [ZzFX Sound Designer](https://killedbyapixel.github.io/ZzFX/)
- Be sure to uncheck the `Spread` checkbox as lua doesn't support the spread syntax.## Attribution
- Port of soundboard and core [ZzFX](https://github.com/KilledByAPixel/ZzFX) by @KilledByAPixel
- Emoji graphics from [twemoji](https://github.com/twitter/twemoji) by @twitter