# Lux synthesĕ Combine colored lights to synthesize white light! [Play in browser](https://txmn.tk/projects/lux-synthese/) Download: [Linux x86_64](https://txmn.tk/projects/lux-synthese/linux-x86_64.zip), [Windows x86_64](https://txmn.tk/projects/lux-synthese/windows-x86_64.zip) In latin, _lux synthesĕ_ means "light by the means of synthesis". This game was developped for the [Bevy Jam #2](https://itch.io/jam/bevy-jam-2). ## Controls * **Move**: arrows * **Switch character**: Tab * **Level up**: Enter (when character is white) * **Reset**: R * **Fullscreen**: F11 * **Exit**: Escape ## TODO * more filters * more levels * (?) multiplayer * more audio * bug: when reset after win, character colors are wrong * redshift warning ## Build ```bash cargo build --release ``` ### WASM ```bash rustup target add wasm32-unknown-unknown cargo install wasm-bindgen-cli sh build-wasm.sh # Serve on 127.0.0.1:8000 python3 -m http.server ``` ## Audio This game used [HexoDSP](https://github.com/WeirdConstructor/HexoDSP) for audio synthesis. The synthetizer matrix can be edited using [HexoSynth](https://github.com/WeirdConstructor/HexoSynth) visual editor. However we could not get this working in WASM, hence we used simple playback audio instead for the jam. The concept of procedural audio is not abandonned but it will be for another time. ## Develop Skip to level `N: u32` with the command `bevyjam `. Edit the level `N: u32` with the command `bevyjam e`. Editor is not available in the WASM build. ### Editor controls * **Select**: left click to select, click in void to deselect, CTRL+click to select many, CTRL+A to select all * **Move selection**: arrows to move one step, Shift+arrows to move continuously * **Delete selection**: delete * **Add objects**: P=platform, C=character, A=absorbing filter, R=rotating filter, M=melty platform * **Move camera**: CTRL+arrows * **Save**: CTRL+S ## License GNU AGPL v3, CopyLeft 2022 Pascal Engélibert, Nixon Cheng _Lux synthesĕ_ is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License. _Lux synthesĕ_ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with _Lux synthesĕ_. If not, see https://www.gnu.org/licenses/.