test + remove print

This commit is contained in:
2025-07-05 20:59:53 +02:00
parent 8cd85a7a35
commit dc67c7e206
2 changed files with 22 additions and 1 deletions

22
saves/TEST_SAVE.json Normal file
View File

@@ -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
}

View File

@@ -127,7 +127,6 @@ pub struct Polygon {
impl Polygon { impl Polygon {
pub fn update(&mut self) { pub fn update(&mut self) {
let path = format!("./assets/{0}", &self.sound_name); let path = format!("./assets/{0}", &self.sound_name);
eprintln!("path:{path}");
self.sound = StaticSoundData::from_file(&path).expect("fail to load the sound"); self.sound = StaticSoundData::from_file(&path).expect("fail to load the sound");
self.color = string_to_color(&self.color_name); self.color = string_to_color(&self.color_name);
} }