IT FUCKING WORKS

This commit is contained in:
gallant 2022-05-05 13:10:45 -05:00
parent 7d26d56132
commit 0c4196fbca

View file

@ -10,7 +10,12 @@ fn main() {
let mut i2 = 0u8;
let sleep = thread::sleep;
thread::spawn(move || {
Command::new("play")
.arg("./sound.mp3")
.output()
.expect("fucked up");
});
game.run(|ctx| {
let mut s = Sprite::new(sprite1, 250, 150).unwrap();
@ -19,6 +24,7 @@ fn main() {
sleep(time::Duration::from_millis(500));
if i == 0 {
i = 255;
i2 = 255u8;
@ -46,10 +52,7 @@ fn main() {
s.draw(ctx).unwrap();
s1.draw(ctx).unwrap();
s2.draw(ctx).unwrap();
Command::new("play")
.arg("./sound.mp3")
.output()
.expect("fucked up");
}).unwrap();