pub startpos

This commit is contained in:
2026-09-17 20:16:22 +02:00
parent 18c4db4e95
commit 8b07880e46
3 changed files with 20 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
use bevy::prelude::*;
use crate::player::{Player, START_POSITION};
#[derive(Resource)]
pub struct Depth(pub f32);
fn update_depth(mut depth: ResMut<Depth>, player: Single<&Transform, With<Player>>) {
depth.0 = START_POSITION.y - player.translation.y;
}
fn spawn_depth_text() {
todo!()
}
fn update_depth_text() {
todo!()
}