fix all polyframe update now
This commit is contained in:
@@ -139,7 +139,7 @@ impl MyApp {
|
|||||||
Ok(j) => {
|
Ok(j) => {
|
||||||
let decoded: Music = serde_json::from_str(&j).unwrap();
|
let decoded: Music = serde_json::from_str(&j).unwrap();
|
||||||
self.music = decoded;
|
self.music = decoded;
|
||||||
self.music.update_frame(self.current_delta);
|
self.music.update_frame();
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
eprintln!("Error, no saves with this name to load, {e} ");
|
eprintln!("Error, no saves with this name to load, {e} ");
|
||||||
|
|||||||
@@ -59,8 +59,10 @@ impl Music {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn update_frame(&mut self, delta: f32) {
|
pub fn update_frame(&mut self) {
|
||||||
self.find_poly_frame(delta).update();
|
for (_, p) in &mut self.poly_frame {
|
||||||
|
p.update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn fix_teta(&mut self, delta: f32) {
|
pub fn fix_teta(&mut self, delta: f32) {
|
||||||
|
|||||||
Reference in New Issue
Block a user