Tutorial: Player Movement, Input and Time


Hello friends!

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!

Thanks!

Files

Pong - Tutorial #3 - Source Code.zip 6 kB
81 days ago
Pong - Tutorial #3.exe 63 kB
81 days ago

Get Pong - Learn Programming

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.