Day 15, SCORE!!!!!
|
First I had some problem implementing sound. The soundeffects played for a while then stopped but with some help from Jerry (co-teacher) I think we nailed it down so it works for now. haven’t tested it too much. And then….SCORE!! Yes after many hours of struggling i finally managed to nail it! We now got score in our game. If my way of doing it is the right way. I’m not sure??…..but it works! The way it works is that an unsigned int keep track of the score. 100 points for each destroyed brick. It then change the int to a string with the function std::to_string(); It works like a charm! |

