Weekly blog assignment #4
|
Hello everyone and welcome back! This week has had so many ups and downs. First I had trouble with the structure, then when I figured out how I should write the code I had some problems with the syntax. When I finally figure that out, the game just crashes over and over again. It has not been an easy (or fun) week. But when I finally solved it all I got so happy, for a day, then the game started to crash again. Creating the PowerUpManager was harder than I thought it would be. So far I have done two out of three power-ups. Last week I finished the freeze power-up and this week I finished the Pierce power-up and I have done about 50% of the bounce power-up. The pierce power-up was not that hard to structure but I did have some syntax problem, especially with all the pointers I had to use. It also required a lot of attention to detail. There were a lot of pointers that could be null and making sure the count them out was such a hassle. I did miss a few now and then and that made the game crash upon start and/or using the power-up but with some outside help I was able to clean it all up and got it to work almost flawlessly. So far I have not noticed any bugs with the pierce power-up. Now, the bounce power-up. This one has been nothing like the other two power-ups I have worked on. This one needed so much planning beforehand. When I first started working on it, I just started writing some code but I understood quickly that just testing different ways until it worked was not gonna work out. So I sat down for quite a while and just constructed the structure in my head. But one of my biggest flaws in programming is that I do not have a lot of experience of structuring code so this step did take my a significant amout of time. I played around with some different ways in my head, talked to our lead coder and after a few hours I had planned ahead a bit. Some stuff was still changed as I went on but the fact that I put down time to plan ahead really helped and of course I still had some problems but that is just programming. All I have left of the bounce power-up is to make sure it does not bounce on the same targets more than once and also make sure it only bounces once on a monster for each lane. So a maximum of five bounces and there are also a few buggs here and there but nothing that is a problem, so I will probably be finished with everything in the PowerUpManager tomorrow. Below you can see how the bounce power-up has affected the snowball to bounce between the monsters. That was my whole week, hope you enjoyed the read and have a wonderfull continued week! Tune in next week for more code trouble! Ara |
