Skip to content

Commit 45af9ff

Browse files
committed
add screenshots
1 parent 28ffa46 commit 45af9ff

File tree

5 files changed

+14
-25
lines changed

5 files changed

+14
-25
lines changed

.github/workflows/build-esp32-s3-rust.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ jobs:
3434
- name: Run checks
3535
working-directory: esp32-s3
3636
run: |
37+
prefix="spooky-maze"
3738
board="esp32-s3-box-3"
3839
3940
# Perform common checks
4041
echo "Running common checks"
41-
cd "$board"
42+
cd "$prefix-$board"
4243
cargo fmt --all -- --check --color always
4344
4445
echo "Building for board: $board"
45-
cargo clippy --release --features "$board" --workspace -- -D warnings
46-
cargo build --release --features "$board"
46+
cargo clippy --release --workspace -- -D warnings
47+
cargo build --release

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ In this game, a ghost navigates through a maze collecting coins while avoiding o
88
dynamite and the "walker" power-up introduce additional gameplay mechanics. On collision with various objects, events
99
are dispatched to decouple hardware-specific logic from game rules.
1010

11+
12+
## Screenshots
13+
14+
### Embedded Version - ESP32-S3-BOX-3
15+
![Spooky Maze Game ESP32-S3-BOX-3](assets/screenshot/spooky-maze-esp32-s3-box-3.webp)
16+
17+
### Desktop Version - macOS
18+
![Spooky Maze Game Desktop](assets/screenshot/spooky-maze-desktop.webp)
19+
1120
## Targets
1221

1322
For now, the project supports two primary targets:
32 KB
Binary file not shown.
Binary file not shown.

spooky-maze-desktop/src/desktop_systems/hud.rs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,22 @@ use spooky_core::systems::hud::HudState;
66
#[derive(Component)]
77
pub struct HudText;
88

9-
pub fn setup_hud(mut commands: Commands, asset_server: Res<AssetServer>) {
10-
// Load a font. (If you want to use a built‐in default, you could try to provide one here.)
11-
// let font_handle = asset_server.load("fonts/FiraSans-Bold.ttf");
12-
9+
pub fn setup_hud(mut commands: Commands) {
1310
// Spawn the HUD root node.
1411
commands
1512
.spawn((
1613
Node {
17-
// Set the size: full width, fixed height (e.g. 60 px)
18-
// size: Size::new(Val::Percent(100.0), Val::Px(60.0)),
19-
// Make the node use absolute positioning at the top‐left
2014
position_type: PositionType::Absolute,
21-
// position: UiRect {
22-
// top: Val::Px(0.0),
23-
// left: Val::Px(0.0),
24-
// ..default()
25-
// },
26-
// Layout: left‐aligned with some padding
2715
justify_content: JustifyContent::FlexStart,
2816
align_items: AlignItems::FlexStart,
2917
padding: UiRect::all(Val::Px(5.0)),
3018
..default()
3119
},
32-
// BackgroundColor(Color::rgba(0.0, 0.0, 0.0, 0.5)),
3320
Name::new("HUD Root"),
3421
))
3522
.with_children(|parent| {
36-
// Spawn the text child that displays the HUD values.
3723
parent.spawn((
38-
// In Bevy 0.16, Text is a tuple struct wrapping a String.
39-
// (For more advanced styling you could add a TextStyle component.)
4024
Text("Coins: 0 Teleport: 100 Walker: 0 Dynamite: 0".to_string()),
41-
// Optionally add a style for the text (e.g. margin).
42-
// Style {
43-
// margin: UiRect::all(Val::Px(5.0)),
44-
// ..default()
45-
// },
4625
HudText,
4726
Name::new("HUD Text"),
4827
));

0 commit comments

Comments
 (0)