diff --git a/saves/TEST_SAVE.json b/saves/TEST_SAVE.json new file mode 100644 index 0000000..6f185d8 --- /dev/null +++ b/saves/TEST_SAVE.json @@ -0,0 +1,22 @@ +{ + "poly_frame": { + "teta": 1.0739278, + "polygons": [ + { + "global_teta": 0.0, + "points_teta": [ + 0.0, + 1.5707964, + 3.1415927, + 4.712389 + ], + "sound_name": "E_MI.ogg", + "name": "Square", + "color_name": "Blue" + } + ] + }, + "nb_sec_for_rev": 5.0, + "file_name": "TEST_SAVE.json", + "show_save_panel": true +} \ No newline at end of file diff --git a/src/polygon_draw.rs b/src/polygon_draw.rs index c9b0326..e7dc43c 100644 --- a/src/polygon_draw.rs +++ b/src/polygon_draw.rs @@ -127,7 +127,6 @@ pub struct Polygon { impl Polygon { pub fn update(&mut self) { let path = format!("./assets/{0}", &self.sound_name); - eprintln!("path:{path}"); self.sound = StaticSoundData::from_file(&path).expect("fail to load the sound"); self.color = string_to_color(&self.color_name); }