Skip to content

Commit 49cf49f

Browse files
committed
README updates, changed day/night toggle key
1 parent 33986c0 commit 49cf49f

File tree

5 files changed

+31
-19
lines changed

5 files changed

+31
-19
lines changed

.github/workflows/release.yaml

+19-12
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,13 @@ jobs:
141141
- name: download all packages
142142
uses: actions/download-artifact@v4
143143
with:
144-
path: bin
144+
path: tars
145+
146+
- name: folders for butler
147+
run: |
148+
for channel in $(ls tars); do
149+
mkdir "upload/${channel%%.*}"; mv ${channel} "upload/${channel%%.*}"
150+
done
145151
146152
- name: install butler
147153
run: |
@@ -150,15 +156,16 @@ jobs:
150156
chmod +x butler
151157
./butler -V
152158
153-
- name: upload all packages to itch.io
154-
env:
155-
BUTLER_API_KEY: ${{ secrets.BUTLER_CREDENTIALS }}
156-
run: |
157-
for channel in $(ls bin); do
158-
./butler push \
159-
--fix-permissions \
160-
--userversion='${{ env.VERSION }}' \
161-
bin/"${channel}"/* \
162-
'${{ env.ITCH_TARGET }}':"${channel#package-}"
163-
done
159+
# SKIPPING DURING JAM JUDGING PERIOD
160+
# - name: upload all packages to itch.io
161+
# env:
162+
# BUTLER_API_KEY: ${{ secrets.BUTLER_CREDENTIALS }}
163+
# run: |
164+
# for channel in $(ls upload); do
165+
# ./butler push \
166+
# --fix-permissions \
167+
# --userversion='${{ env.VERSION }}' \
168+
# upload/"${channel}" \
169+
# '${{ env.ITCH_TARGET }}':"${channel#package-}"
170+
# done
164171

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "lifecycler"
33
description = "Bevy Game Jam #5 submission. Terminal aquarium."
4-
version = "0.2.4"
4+
version = "0.2.5"
55
edition = "2021"
66
license = "MIT OR Apache-2.0 OR CC0-1.0"
77
authors = ["cxreiff <[email protected]>"]

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ lifecycler
2727
| | |
2828
|--------------------|----------------------------|
2929
| Left Click or Drag | Dispense a food pellet. |
30-
| Right click | $80 |
30+
| Space Bar | Toggle day/night modes. |
3131
| M | Mute/unmute sound effects. |
3232
| Q | Quit the game. |
3333

34+
## note
35+
36+
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.
37+
3438
## manual installation
3539

3640
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).

src/input.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ fn handle_keyboard_system(
2121
mut ratatui_events: EventReader<KeyEvent>,
2222
mut exit: EventWriter<AppExit>,
2323
mut flags: ResMut<Flags>,
24+
mut daylight_event: EventWriter<DaylightEvent>,
2425
) {
2526
for key_event in ratatui_events.read() {
2627
match key_event.kind {
@@ -37,6 +38,10 @@ fn handle_keyboard_system(
3738
flags.muted = !flags.muted;
3839
}
3940

41+
KeyCode::Char(' ') => {
42+
daylight_event.send_default();
43+
}
44+
4045
_ => {}
4146
},
4247
_ => {}
@@ -48,7 +53,6 @@ fn handle_mouse_system(
4853
ratatui: Res<RatatuiContext>,
4954
mut events: EventReader<MouseEvent>,
5055
mut pellet_event: EventWriter<PelletEvent>,
51-
mut daylight_event: EventWriter<DaylightEvent>,
5256
mut drag_threshold: ResMut<DragThreshold>,
5357
camera: Query<&Transform, With<Camera>>,
5458
) {
@@ -72,9 +76,6 @@ fn handle_mouse_system(
7276
**drag_threshold -= 1;
7377
}
7478
}
75-
MouseEventKind::Down(MouseButton::Right) => {
76-
daylight_event.send_default();
77-
}
7879
_ => {}
7980
}
8081
}

0 commit comments

Comments
 (0)