richelbilderbeek / bevy_tdd_book_use_resources

Code for a chapter of 'Developing Bevy games using TDD'

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bevy_tdd_book_use_resources

Check build Check links Check markdown Check Rust style Check spelling Measure code coverage codecov

Chapter of https://github.com/richelbilderbeek/bevy_tdd_book.

The goal of this chapter is to use a Bevy resource:

Screenshot of this game

Screenshot of this game. Indeed, it is only an empty window :-)

Setup

Setup is done as described in the Bevy 'getting started' guide:

git clone https://github.com/richelbilderbeek/bevy_tdd_book_use_resources
cd bevy_tdd_book_use_resources
cargo init
cargo add bevy

To Cargo.toml add:

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

# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
[profile.dev.package."*"]
opt-level = 3

To .cargo/config.toml add:

[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=lld"]

Files used by continuous integration scripts

Filename Descriptions
mlc_config.json Configuration of the link checker, use markdown-link-check --config mlc_config.json --quiet docs/**/*.md to do link checking locally
.spellcheck.yml Configuration of the spell checker, use pyspelling -c .spellcheck.yml to do spellcheck locally
.wordlist.txt Whitelisted words for the spell checker, use pyspelling -c .spellcheck.yml to do spellcheck locally
.markdownlint.jsonc Configuration of the markdown linter, use markdownlint "**/*.md" to do markdown linting locally. The name of this file is a default name.
.markdownlintignore Files ignored by the markdown linter, use markdownlint "**/*.md" to do markdown linting locally. The name of this file is a default name.

References

About

Code for a chapter of 'Developing Bevy games using TDD'

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%