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
Get Pong - Learn Programming
Pong - Learn Programming
A simple pong game with accompanying tutorials and source code
Status | In development |
Author | Dan Zaidan |
Genre | Action |
Tags | 2D, Arcade, Casual, Fast-Paced, Open Source, Pixel Art, pong, Tutorial |
More posts
- [COMPLETE TUTORIAL] How to make a game in C++!Sep 26, 2019
- How to make an AI for GAMESSep 23, 2019
- Tutorial #5: Enemy AI, Score System, Finishing the GameplaySep 18, 2019
- Introduction to Collision Detection For GamesSep 08, 2019
- How to make your GAME feel AWESOMESep 08, 2019
- C++ Tutorial: Gameplay, Movement and CollisionSep 04, 2019
- Tutorial: How to make a software renderer to display graphicsAug 16, 2019
- Learn how to make a game in C++Aug 07, 2019
Leave a comment
Log in with itch.io to leave a comment.