Native raylib backend for Selene.
moon install Milky2018/selene_tools/cmd/selene-embed-assetsoptions(
"pre-build": [
{
"input": "<assets-dir>",
"output": "_embedded_assets.pack",
"command": "selene-embed-assets --assets-dir $input --pack-out $output --path-prefix <runtime-prefix>",
},
{
"input": "<assets-dir>",
"output": "embedded_assets_index.mbt",
"command": "selene-embed-assets --assets-dir $input --index-out $output --path-prefix <runtime-prefix> --blob-name embedded_assets_blob --lookup-fn get_embedded_asset",
},
{
"input": "_embedded_assets.pack",
"output": "embedded_assets_blob.mbt",
"command": ":embed --binary -i $input -o $output --name embedded_assets_blob",
},
],
)import { "Milky2018/selene/asset" @asset }
fn main {
@asset.set_io(get_embedded_asset)
// app.run()
}fn play_audio(audio_path~ : String, volume~ : Double, speed~ : Double, loop_~ : Bool, paused~ : Bool) -> Intfn register_gamepad_events(gamepads : Set[Gamepad], buttons : Set[GamepadButtonInput], axes : Map[GamepadAxisInput, Double]) -> Unitfn register_mouse_events(mouse : Mouse, mouse_movement : MouseMovement, mouse_wheel : MouseWheel) -> Unit