multithreading

This commit is contained in:
2025-06-29 22:56:53 +02:00
parent 85bfa0f45f
commit bbaa9d09e1
5 changed files with 35 additions and 18 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ use osui::{
fn main() {
let mut screen = Screen::new();
screen.extension(VelocityExtension);
screen.extension(TickExtension);
screen.extension(TickExtension(60));
screen
.draw(format!("Hello, World!"))
@@ -20,7 +20,7 @@ fn main() {
if let Some(mut v) = w.get::<Velocity>() {
if let Some(t) = w.get::<Transform>() {
if let Position::Const(c) = t.x {
if c == 30 {
if c >= 30 {
v.0 = 0;
w.set_component(v);
}