example item

This commit is contained in:
2025-09-12 18:04:03 +01:00
parent ee7ac39ad5
commit 8a5884c6d5
19 changed files with 1009 additions and 53 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ pub fn spawn_rabbits(
if let Ok(mut rng) = rng_q.single_mut() {
// Spawn a handful of rabbits
for _ in 0..15 {
let cit = commands
let rab = commands
.spawn(Rabbit::new(
&asset_server,
Vec3::new(
@@ -53,7 +53,7 @@ pub fn spawn_rabbits(
) * TILE_SIZE,
))
.id();
commands.entity(cit).insert(VisibleGameEntity);
commands.entity(rab).insert(VisibleGameEntity);
}
}
}