Tutorial: Player Movement, Input and Time
I have just finished a new tutorial in the series where I teach in a step-by-step, beginner-friendly way how to program a game in C++.
Today, we create an input system in the engine. We learn a cool way to save the button states so that we can easily know if the button is down, was pressed or released! This allows us to make the player control a square around the screen! Then, we discussed what it would take to make the player move while the key was down and what we need to do in terms of time to make that frame rate independent!
If you have any questions, be sure to comment below
Here is the tutorial:
You can also watch the whole series here: https://www.youtube.com/playlist?list=PL7Ej6SUky135IAAR3PFCFyiVwanauRqj3
I hope you enjoy programming this game as well!
Get Pong - Learn Programming
Leave a comment
Log in with itch.io to leave a comment.