Code Review group 18 …
|
The player header file includes different header files which gives the player ability to shot and the different power ups and couples the position . It is where they also create three objects which looks like their power ups.The player’s constractor and deconstructor is declared in the h. file too. It feels like they put everything inside the player h. file without any structure. I mean fr the different power ups i would make an extra class for it and don’t just put everything inside on h file. same thing with the textures why not just make an animated sprite manager or an texture manager which manages every texture or sprite. The player .cpp file includes the player h. file and it includes the random generator and iostream. What i like with the player file is that is nice structured at the beginning they declare the functions and variables in the beginning.And they are setting up the ability’s and the tutorial. What i don’t undertand why you don’t use the smotherdeltatime function so you get a smother running time rather than just use deltaTime for updating it all the time. But what is the main menu doing in the player file ?? I don’t understand that . But the one thing i like with your code is that the structure is done in a good way . Anyway good luck and keep up the good work |
