diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f056848..5f30b34 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -141,7 +141,13 @@ jobs: - name: download all packages uses: actions/download-artifact@v4 with: - path: bin + path: tars + + - name: folders for butler + run: | + for channel in $(ls tars); do + mkdir "upload/${channel%%.*}"; mv ${channel} "upload/${channel%%.*}" + done - name: install butler run: | @@ -150,15 +156,16 @@ jobs: chmod +x butler ./butler -V - - name: upload all packages to itch.io - env: - BUTLER_API_KEY: ${{ secrets.BUTLER_CREDENTIALS }} - run: | - for channel in $(ls bin); do - ./butler push \ - --fix-permissions \ - --userversion='${{ env.VERSION }}' \ - bin/"${channel}"/* \ - '${{ env.ITCH_TARGET }}':"${channel#package-}" - done + # SKIPPING DURING JAM JUDGING PERIOD + # - name: upload all packages to itch.io + # env: + # BUTLER_API_KEY: ${{ secrets.BUTLER_CREDENTIALS }} + # run: | + # for channel in $(ls upload); do + # ./butler push \ + # --fix-permissions \ + # --userversion='${{ env.VERSION }}' \ + # upload/"${channel}" \ + # '${{ env.ITCH_TARGET }}':"${channel#package-}" + # done diff --git a/Cargo.lock b/Cargo.lock index ee431a0..c40b65b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2730,7 +2730,7 @@ dependencies = [ [[package]] name = "lifecycler" -version = "0.2.3" +version = "0.2.4" dependencies = [ "bevy", "bevy_atmosphere", diff --git a/Cargo.toml b/Cargo.toml index 9526593..c0548af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "lifecycler" description = "Bevy Game Jam #5 submission. Terminal aquarium." -version = "0.2.4" +version = "0.2.5" edition = "2021" license = "MIT OR Apache-2.0 OR CC0-1.0" authors = ["cxreiff "] diff --git a/README.md b/README.md index db52ba9..130308c 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,14 @@ lifecycler | | | |--------------------|----------------------------| | Left Click or Drag | Dispense a food pellet. | -| Right click | $80 | +| Space Bar | Toggle day/night modes. | | M | Mute/unmute sound effects. | | Q | Quit the game. | +## note + +The resolution is determined by the character-wise dimensions of your terminal- so zoom out in your terminal for more detail, zoom in for a more pixelated look. + ## manual installation Alternatively you can manually download an executable from the [itch.io page](https://cxreiff.itch.io/lifecycler) or [github releases](https://github.com/cxreiff/lifecycler/releases). diff --git a/src/input.rs b/src/input.rs index 51abec1..262885f 100644 --- a/src/input.rs +++ b/src/input.rs @@ -21,6 +21,7 @@ fn handle_keyboard_system( mut ratatui_events: EventReader, mut exit: EventWriter, mut flags: ResMut, + mut daylight_event: EventWriter, ) { for key_event in ratatui_events.read() { match key_event.kind { @@ -37,6 +38,10 @@ fn handle_keyboard_system( flags.muted = !flags.muted; } + KeyCode::Char(' ') => { + daylight_event.send_default(); + } + _ => {} }, _ => {} @@ -48,7 +53,6 @@ fn handle_mouse_system( ratatui: Res, mut events: EventReader, mut pellet_event: EventWriter, - mut daylight_event: EventWriter, mut drag_threshold: ResMut, camera: Query<&Transform, With>, ) { @@ -72,9 +76,6 @@ fn handle_mouse_system( **drag_threshold -= 1; } } - MouseEventKind::Down(MouseButton::Right) => { - daylight_event.send_default(); - } _ => {} } }