Open AlJasmin opened 2 weeks ago
it is a chellange for me to make music play in the background, ill try my best !! would you like chill music or what kind exactly ??
@Jonah-gr i am trying to make it work so it plays sounds in the background upon entering the "gym", i did my researches and found out that you could do that with a python bib called "pygame" which need to be pre installed in the windows to work. is it okay if i made a function and attached it to my room Class that checks the useres system if the bib is already installed and if not that it should install it and then import it so the program could work ?
@Jonah-gr i am trying to make it work so it plays sounds in the background upon entering the "gym", i did my researches and found out that you could do that with a python bib called "pygame" which need to be pre installed in the windows to work. is it okay if i made a function and attached it to my room Class that checks the useres system if the bib is already installed and if not that it should install it and then import it so the program could work ?
Sounds good! (pun intended) But maybe it would be better if your code simply checks if pygame is installed, and if so then sound is played and otherwise not. This way nobody is forced to download anything, which can lead to problems.
One more thing you should consider: the music is probably played from a local file, so make sure that the file is not too large for Github (definitely < 100MB and preferably < 50MB). Otherwise, good luck!
it is a chellange for me to make music play in the background, ill try my best !! would you like chill music or what kind exactly ??
the choice is up to you but it shouldnt be some calm or slow music
You enter a new room on the ground floor a fully equipped gym. In the background gym music starts playing. Inside, you’ll find a variety of workout machines, some for cardio training and others for strength training. You can choose between upper-body or lower-body training, each offering specific exercises like chest, back, or leg workouts, accompanied by a brief ASCII animation that visually represents the activity. Alternatively, you can hop on the treadmill and start a cardio session, with the option to extend your workout as long as you'd like. After each session, you’ll be asked if you’d like to continue, switch to a different workout, or finish and leave the gym.