improved velocity algorithm

This commit is contained in:
2025-06-30 08:31:28 -05:00
parent bbaa9d09e1
commit 921bfa27c1
2 changed files with 50 additions and 28 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ fn main() {
screen
.draw(format!("Hello, World!"))
.component(Transform::new())
.component(Velocity(1, 0))
.component(Velocity(100, 0))
.component(OnTick(|w| {
if let Some(mut v) = w.get::<Velocity>() {
if let Some(t) = w.get::<Transform>() {