Game stats that reset every frame, inspired by immediate mode GUI.
gamedev bevy stats
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Reorganized workspace structure.

Also added `attribute_macro` feature flag.

+31 -16
+2 -15
Cargo.toml
··· 1 - [package] 2 - name = "immediate_stats" 3 - version = "0.1.0" 4 - edition = "2024" 5 - keywords = ["game", "bevy", "stats"] 6 - categories = ["game-development", "data-structures"] 7 - 8 - [features] 9 - bevy = ["bevy_ecs", "bevy_app"] 10 - 11 1 [workspace] 12 - members = ["immediate_stats_macros"] 2 + members = ["immediate_stats", "immediate_stats_macros"] 13 3 14 - [dependencies] 15 - bevy_app = { version = "0.15.3", default-features = false, optional = true } 16 - bevy_ecs = { version = "0.15", default-features = false, optional = true } 17 - immediate_stats_macros = { path = "immediate_stats_macros" } 4 + resolver = "3"
+19
immediate_stats/Cargo.toml
··· 1 + [package] 2 + name = "immediate_stats" 3 + version = "0.1.0" 4 + edition = "2024" 5 + description = "A crate for makeing immediate-mode stats." 6 + categories = ["game-development", "data-structures"] 7 + keywords = ["game", "bevy", "stats"] 8 + repository = "https://github.com/AlephCubed/immediate_stats" 9 + license = "MIT OR Apache-2.0" 10 + 11 + [features] 12 + default = ["attribute_macro"] 13 + attribute_macro = ["immediate_stats_macros/attribute_macro"] 14 + bevy = ["bevy_ecs", "bevy_app"] 15 + 16 + [dependencies] 17 + bevy_app = { version = "0.15.3", default-features = false, optional = true } 18 + bevy_ecs = { version = "0.15", default-features = false, optional = true } 19 + immediate_stats_macros = { path = "../immediate_stats_macros", default-features = false }
+10 -1
immediate_stats_macros/Cargo.toml
··· 2 2 name = "immediate_stats_macros" 3 3 version = "0.1.0" 4 4 edition = "2024" 5 + description = "A crate for makeing immediate-mode stats." 6 + categories = ["game-development", "data-structures"] 7 + keywords = ["game", "bevy", "stats"] 8 + repository = "https://github.com/AlephCubed/immediate_stats" 9 + license = "MIT OR Apache-2.0" 5 10 6 11 [lib] 7 12 proc-macro = true 8 13 14 + [features] 15 + default = ["attribute_macro"] 16 + attribute_macro = [] 17 + 9 18 [dependencies] 10 19 proc-macro2 = "1.0" 11 20 quote = "1.0" 12 - syn = { version = "2.0", features = ["full"] } 21 + syn = { version = "2.0", features = ["full"] }
src/bevy.rs immediate_stats/src/bevy.rs
src/lib.rs immediate_stats/src/lib.rs