/bevy_garden

Primary LanguageRustApache License 2.0Apache-2.0

Bevy Garden

An example bevy game where you plant trees in a garden.

This example demonstrates a simple editor interface, working with bevy scenes, saving/loading and common patterns regarding game state.


Example Screenshot Image

Usage

cargo run

Features

This example showcases the following:

  • Spawn objects from asset files.
  • Capture object to scene.
  • Tool library and tool stack.
  • Saving and loading.
  • Undo and redo (also via save crate).
  • Treat objects made up of multiple entities as a single object.
  • Multiple examples working with bevy scenes:
    • Modifying scenes before spawning (centering, adding components etc.).
    • Dealing with Parent/Children hierarchies in scenes.
    • Spawning scenes directly into the world, without using DynamicSceneBundle.
    • See bevy_scene_utils, save, duplicate_tool and prefab_tool for examples.

Third-Party Bevy Crates

The following third-party crates are used:

Credits

  • bevy_save - I copied the idea of the SaveableRegistry and rollbacks from this project (see save crate).

License

All code in this repository is dual-licensed under either:

at your option. This means you can select the license you prefer.