test + remove print
This commit is contained in:
22
saves/TEST_SAVE.json
Normal file
22
saves/TEST_SAVE.json
Normal 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
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user