filmov
tv
C++ Game Dev Tutorial #2: Images & Sprites at Command Prompt (Making a C++ Game From Scratch)

Показать описание
Interested in making a C++ game from scratch at the command prompt?
Then welcome to the C++ game dev tutorial series on how to code a game for the Windows console.
As you will see in these videos, programming games in C++ has never been so easy (sorry if this statement turns out not to be true).
To facilitate the process of coding a simple game in C++ at the command prompt, I developed a game framework called Consoler.
All source codes and programs shown in these videos are based on using this framework. So if you missed the previous parts, I highly recommend to watch them!
In episode #2, I'm going to show more complex examples.
We will see how to use the framework to display an image in the Windows console.
We will also learn how to print text using bitmap fonts, and handle sprite objects.
Finally, we will explain how to animate sprites, and detect collisions between sprites.
★ Chapters ★
00:00 - Intro
00:35 - Converting image to a console-readable format
01:20 - Using sprite object to display image
01:39 - Printing text with bitmap fonts
03:05 - Drawing sprites
03:24 - Scaling sprites
03:45 - Animating sprites
04:35 - Adding controls
05:14 - Checking collisions
05:57 - Watch in the next episode...
06:21 - Outro
This complete C++ game dev tutorial series is available for download on my Github profile, including the static and dynamic library of the Consoler framework and the source codes of all examples:
★ My C++ game development tools ★
The Notepad++ text editor is used for writing the code.
The MinGW tools is installed to run the gcc compiler.
The command line is used to execute scripts for building a command prompt game.
★ Consoler game framework ★
Each demo as well as the console games shown in this video series are based on my own game framework, imaginatively named Consoler. Using it, the making a C++ game from scratch is pretty easy and straightforward.
The main features of the framework are:
✓ creating a new console window,
✓ running the main loop,
✓ handling all user inputs from a keyboard or mouse
✓ rendering the console screen, by using color attributes of the console buffer
✓ drawing pixels
✓ drawing primitive graphic shapes: lines, rectangles and circles
✓ displaying images and sprites
✓ animating sprites
✓ detecting collisions between sprites
✓ printing text using the bitmap fonts
✓ playing sounds
✓ providing utility helper functions
Now it's your turn to start coding a simple game in C++ with Consoler game framework.
So, I hope you will enjoy this game dev tutorial series and maybe learn something from it.
If you find today's video interesting, please like it, and consider subscribing to my youtube channel.
I would greatly appreciate it!
And that way, you don't miss out on more actionable videos like this one.
If you have any feedback or suggestions, please let me know by leaving a comment!
Thanks for watching and see you in the next video.
★ Contact Info ★
Official Website:
Github:
Facebook:
Twitter:
★ Credits ★
Fig Leaf Rag by Kevin MacLeod
Hammock Fight by Kevin MacLeod
'House Of Style'
Jay Man - OurMusicBox
#gamedev #indiedev #devblog #programming #coding #c++ #console
Then welcome to the C++ game dev tutorial series on how to code a game for the Windows console.
As you will see in these videos, programming games in C++ has never been so easy (sorry if this statement turns out not to be true).
To facilitate the process of coding a simple game in C++ at the command prompt, I developed a game framework called Consoler.
All source codes and programs shown in these videos are based on using this framework. So if you missed the previous parts, I highly recommend to watch them!
In episode #2, I'm going to show more complex examples.
We will see how to use the framework to display an image in the Windows console.
We will also learn how to print text using bitmap fonts, and handle sprite objects.
Finally, we will explain how to animate sprites, and detect collisions between sprites.
★ Chapters ★
00:00 - Intro
00:35 - Converting image to a console-readable format
01:20 - Using sprite object to display image
01:39 - Printing text with bitmap fonts
03:05 - Drawing sprites
03:24 - Scaling sprites
03:45 - Animating sprites
04:35 - Adding controls
05:14 - Checking collisions
05:57 - Watch in the next episode...
06:21 - Outro
This complete C++ game dev tutorial series is available for download on my Github profile, including the static and dynamic library of the Consoler framework and the source codes of all examples:
★ My C++ game development tools ★
The Notepad++ text editor is used for writing the code.
The MinGW tools is installed to run the gcc compiler.
The command line is used to execute scripts for building a command prompt game.
★ Consoler game framework ★
Each demo as well as the console games shown in this video series are based on my own game framework, imaginatively named Consoler. Using it, the making a C++ game from scratch is pretty easy and straightforward.
The main features of the framework are:
✓ creating a new console window,
✓ running the main loop,
✓ handling all user inputs from a keyboard or mouse
✓ rendering the console screen, by using color attributes of the console buffer
✓ drawing pixels
✓ drawing primitive graphic shapes: lines, rectangles and circles
✓ displaying images and sprites
✓ animating sprites
✓ detecting collisions between sprites
✓ printing text using the bitmap fonts
✓ playing sounds
✓ providing utility helper functions
Now it's your turn to start coding a simple game in C++ with Consoler game framework.
So, I hope you will enjoy this game dev tutorial series and maybe learn something from it.
If you find today's video interesting, please like it, and consider subscribing to my youtube channel.
I would greatly appreciate it!
And that way, you don't miss out on more actionable videos like this one.
If you have any feedback or suggestions, please let me know by leaving a comment!
Thanks for watching and see you in the next video.
★ Contact Info ★
Official Website:
Github:
Facebook:
Twitter:
★ Credits ★
Fig Leaf Rag by Kevin MacLeod
Hammock Fight by Kevin MacLeod
'House Of Style'
Jay Man - OurMusicBox
#gamedev #indiedev #devblog #programming #coding #c++ #console
Комментарии