Game programming I – Week 2
|
This week we have started to learn about and work with Arrays, Functions, Strings, Pointers and we’ve also discussed Memory and the two types of memory – stack and heap. To be honest, I feel like this week has been really tough and it feels like I have had a hard time understanding everything that was said. I do however believe I will understand as we keep going, it is always tough to learn something new. We also started with Pong at the end this week, above is a picture of the game playing, it is still not really complete, but the collision works (granted, there’s a bug that does so that the ball gets stuck for a while on one of the paddles before it flies away in a random direction), the ball moves and bounces and we got a basic scoreboard. We don’t however have an AI or a score system in the game itself and the ball doesn’t slowly accelerate every time it hits a paddle. We were however very stressed today and even went over by half an hour to complete what we were doing. It felt like a large portion of the class were a bit lost tho with how everything was connected and it really did feel overwhelming, probably in part as we wrote the program in a single file instead of splitting them up which lead to us having to bounce around in our first real game in C++ which had 380 lines of code in a single document which got quite confusing. For better or for worse we did not write all those lines of code which meant that we could get going faster, but it also meant that we were met with a lot of information when we first started it that we didn’t understand. Filed under: Game programming I – 5SD022, University Tagged: 5SD022, programming |
