amethyst / evoli

An ecosystem-simulation game made with Amethyst
https://community.amethyst.rs/t/evoli-introduction/770
Other
217 stars 33 forks source link

Basic ambient background music loop #26

Closed erlend-sh closed 5 years ago

erlend-sh commented 5 years ago

The looping ambient track has already been created.

What remains is playing this track on a loop once the game starts.

marotili commented 5 years ago

The pong example should be a good starting point. https://github.com/amethyst/amethyst/blob/v0.10.0/examples/pong/audio.rs

Check out the amethyst repository and run cargo run --example pong to run the example.

This file is responsible for setting up the background music: https://github.com/amethyst/amethyst/blob/v0.10.0/examples/pong/audio.rs

nicklasmoeller commented 5 years ago

I made an attempt on this one, as referenced.

marotili commented 5 years ago

Implemented in #35