百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

ImpatientProgrammerBevyRust

> 编程语言
开源

《不耐烦的程序员指南:Bevy 和 Rust:从零开始构建 2D 游戏》

181 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

《不耐烦的程序员指南:Bevy 和 Rust:从零开始构建 2D 游戏》

The Impatient Programmer's Guide to Bevy and Rust

Read the first 7 chapters free. The paid ebook includes chapters 8-13, and I'm actively working on more content. As an early access release, it's currently available at a discounted price. Chapter 12 is also free to read.

Chapters

Chapter 1: Let There Be a Player

Learn to build a video game from scratch using Rust and Bevy. This first chapter covers setting up your game world, creating a player character, and implementing movement and animations.

Chapter 2: Let There Be a World

Learn procedural generation techniques to create dynamic game worlds.

Chapter 3: Let The Data Flow

Learn to build a data-driven character system in Bevy. We'll use a RON file to configure character attributes and animations, create a generic animation engine that handles walk, run, and jump animations, and implement character switching.

Chapter 4: Let There Be Collisions

Let's make the player interact with the world properly, no more walking through trees, water, or rocks. We'll implement z-ordering so they can walk behind objects, giving your 2D game true depth. Also, you'll build a collision visualizer for debugging.

Chapter 5: Let There Be Pickups

Build an inventory system to collect items from the world, then zoom in and add smooth camera follow.

Chapter 6: Let There Be Particles

Learn to build a particle system with magical powers and create stunning particle effects. Learn custom shaders, additive blending, and how to make your game feel alive.

Chapter 7: Let There Be Enemies

Build intelligent enemies that hunt and attack the player.

Chapter 8: Let There Be Damage

Add health, damage, and combat mechanics that make your game feel dangerous.

Chapter 9: Let The World Scale

Break through Wave Function Collapse size limits by stitching multiple maps into one massive world.

Chapter 10: Let There Be Memory

Learn to save and load your game so players can pick up exactly where they left off.

Chapter 11: Let There Be Sound

Learn how to add background music and sound effects to your Bevy game.

Chapter 12: Let There Be Networking

Learn how to build multiplayer networking in Bevy with SpacetimeDB.

Chapter 13: Let There Be a Shared World

Learn how to make every multiplayer client generate the exact same procedural world using a server-owned seed.

Getting Started

Each chapter has its own directory with a complete, runnable project. Navigate to the chapter directory you want to explore and run:

bash
cd chapter1  # or chapter2, chapter3, chapter4, chapter5, chapter6, chapter7, chapter12
cargo run

Note for Linux users on Wayland: if you see rendering artifacts, run the app with the X11 backend:

bash
WINIT_UNIX_BACKEND=x11 WAYLAND_DISPLAY= cargo run

Community Tip: This optimization was pointed out by one of our community members, thank you for helping make this tutorial better!

Bevy's default debug configuration can lead to performance issues: scenes that should run smoothly might drop to unplayable framerates, or large assets might take minutes to load.

The Bevy team documents this issue and provides a solution.

Add these optimizations to your Cargo.toml:

toml
# At the bottom of your Cargo.toml

# Enable a small amount of optimization in the dev profile
[profile.dev]
opt-level = 1

# Enable a large amount of optimization in the dev profile for dependencies
[profile.dev.package."*"]
opt-level = 3

Community

  • Join our Discord community to get notified when new chapters drop
  • Connect with me on Twitter/X
  • Connect with me on LinkedIn

Assets

  • assets/tile_layers: "16x16 Game Assets" by George Bailey, CC-BY 4.0.

License

The tutorial code in this repository is licensed under the MIT License. See the LICENSE file for details.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustbevyrust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言