RepositoryRustCZSéc
georgik

georgik/esp32-spooky-maze-game

Rust Bare Metal implementation of maze game for ESP32 with Bevy ECS no_std

73sao
9fork
1issue
2lượt xem

👻 Mê cung ma lùng dịm trên ESP32 với Bevy ECS no_std

Một demo kỹ thuật đa nền tảng: cùng một lõi game chạy trên desktop, trình duyệt (WASM) và cả một loạt bo mạch ESP32/M5Stack nhúng.

ESP32 Spooky Maze Game là demo game kỹ thuật dựng trên Bevy ECS 0.16.1 với hỗ trợ no_std qua esp-hal 1.0.0-beta.1. Người chơi điều khiển một linh hồn trong mê cung thu thập xuồng đồng thời tránh vật cản; các vật phẩm đặc biệt như thuốc nổ và bản nâng 'walker' mở rộng cơ chế chơi. Nhờ kiến trúc dựa trên sự kiện, logic phần cứng và quy tắc game được tách biệt sạch sẽ.

✨ Điểm nổi bật

  • Lõi game dùng chung: logic trong spooky-core, biên dịch cho desktop, WASM và nhúng.
  • no_std + Bevy ECS: game logic chạy trên Bevy ECS trong môi trường no_std bằng esp-hal.
  • Đa mục tiêu phần cứng: hỗ trợ ESP32-S3-BOX-3, M5Stack Atom-S3/S3R/CoreS3/Core2 với cảm biến gia tốc khác nhau.
  • Điều khiển hỗn hợp: bàn phím (desktop/WASM), cảm biến gia tốc ICM42670/MPU6800/BMI270 (nhúng).
  • Renderer tùy chỉnh: dùng Embedded Graphics thay thế Bevy rendering/UI không khả dụng trong no_std.
  • Tạo mê cung ngẫu nhiên: seed cung cấp qua tài nguyên, trên nhúng dùng phát sinh từ RNG phần cứng.
  • Quản lý bộ nhớ linh hoạt: PSRAM hoặc RAM nội bộ tùy bo mạch, framebuffer 320x240x2 hoặc nhỏ hơn.
  • Xử lý sự kiện nhẹ: chỉ dùng TaskPoolPlugin, TimePlugin, ScheduleRunnerPlugin để giảm chi phí bộ nhớ.

💡 Vì sao đáng chú ý

Dự án cho thấy cách xây dựng ứng dụng đa nền tảng thực sự: một lõi game duy nhất chạy trên desktop, trình duyệt và hàng chục bo mạch nhúng khác nhau mà không nhân đôi logic. Việc kết hợp Bevy ECS no_std với esp-hal và Embedded Graphics mở ra mẫu thiết kế mới cho các ứng dụng nhúng phức tạp. Đặc biệt, cách các nhiên liệu phần cứng (accelerometer, RNG) được tiêm như tài nguyên Bevy giúp giữ sự tách biệt sạch giữa phần cứng và game logic.


#BevyECS #no_std #ESP32 #EmbeddedRust #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryRust
tauri-apps/tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.

113.4k
Dec 1, 2026
RepositoryRust
warpdotdev/warp

Warp is an agentic development environment, born out of the terminal.

66.2k
Dec 1, 2026
RepositoryRust
tw93/Pake

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

64.1k
Nov 28, 2026
RepositoryRust
tinyhumansai/openhuman

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

43.0k
Nov 24, 2026
RepositoryRust
DioxusLabs/dioxus

Fullstack app framework for web, desktop, and mobile.

40.0k
Nov 30, 2026
RepositoryRust
farion1231/cc-switch

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

158.7k
Dec 2, 2026
RepositoryRust
ruvnet/RuView

π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.

105.9k
Dec 2, 2026
RepositorySwift
onehumanbeing/esp32-iphone-agent

Manina AI: let an AI model use a real iPhone with a $7 ESP32: AirPlay eyes, USB HID hands, any OpenAI-compatible vision model. No Mac, no developer account, no jailbreak.

5.8k
Dec 1, 2026