In period 3 of my first year we had to make our first game.
Just like the clock from period 1, I’ve learned a lot in the progress and had to remake it one time. So there are 2 versions.
I’ve learned about:
- Multidimensional arrays
- How drawing only on the necessary spots increases performance
- Object Oriented Programming in C++
- Keyboard input
- Writing to a file
the 1st version is the one where the whole screen is drawed over again every single loop (through a multidimensional array). I unfortunately don’t have the source code anymore of the first version.
After booting both you should feel the difference in performance. It’s also possible now for the car to move faster.
Both versions are dutch. At version 1 you can use any key to start. a to move left and d to move right, you can use w and s to change speed. At version one you use the arrow keys to go to any direction, at the beginning you can choose a car using the arrow keys, start the game by pressing space.