How to program a game in C++: #5 - Enemy AI, Score System, Finishing the Gameplay

Опубликовано: 25 Август 2026
на канале: Dan Zaidan
28,336
423

DOWNLOAD the GAME and the SOURCE CODE: https://danzaidan.itch.io/pong-learn-...
It's also on GITHUB: https://github.com/DanZaidan/pong_lea...
Making a game in C from scratch and releasing it on Steam:    • Making a game in C from scratch (All the w...  

Ever wondered how games are programmed?
In this tutorial series, I will teach you how to make a game in C++.
Hopefully, you will learn the fundamentals of game programming and be able to make your own games by the end!

This series is beginner friendly, and I'll take a step by step approach, to make sure everyone can follow along. (But basic programming skills are recommended).

In this tutorial, we created a score system for the game, and drew the numbers using our software renderer. We also create and improve an AI for the enemy, discussing some important points of artificial intelligence for games. This makes the end of the gameplay for the game! Next time, we'll add a menu system and polish the game, preparing it for the release!
If you have any questions, be sure to comment below!

I hope you enjoy programming this game as well!

---------
Music: "Das große Jazz Loop Paket" by Sascha Ende