rust-adventure / 2048

A course that teaches you Rust by building 2048 with the Bevy ECS engine.
https://www.rustadventure.dev/
10 stars 2 forks source link

Bevy 0.13 update #2

Closed ChristopherBiscardi closed 4 months ago

ChristopherBiscardi commented 8 months ago

Code and workshop lessons should both be updated.

https://bevyengine.org/news/bevy-0-13/

Notably, this includes the automatic apply_deferred that will address #1 .

ChristopherBiscardi commented 8 months ago

bevy_easings is released on crates.io with 0.13 compatibility and is the only major dependency for this workshop.

ChristopherBiscardi commented 8 months ago

Base updates for 0.13 that result in a running program again:

The program runs and all functionality seems to be working, however some of the issues seen in #1 seem much more easily triggerable in 0.13.

https://github.com/rust-adventure/2048/assets/551247/25e44eb4-193a-42fc-bb3e-2ce77d8896ce

Changes were made in https://github.com/rust-adventure/2048/commit/447b6218dd1ee2284cdf0ace89af640b503f37e6

ChristopherBiscardi commented 8 months ago

Added a new section on testing, especially around detecting game over (without having to play an entire game) -- https://github.com/rust-adventure/2048/commit/1687150903f99a892ec1ee971a74cc6da874029a

ChristopherBiscardi commented 7 months ago

added sprites now that 9-slice scaling is in bevy releases

image