[C++ Tutorial #9] While Loops, Input, Game Loop

preview_player
Показать описание
In this video we build a very simple game loop using while loops and std::cin etc.
I decided not to clear the console (or get key presses) because I didn't feel like using old libraries. You can if you want to (try googling).
For your homework, try creating your own game loop using everything you've learned so far.

(8:57) This is a simplified example (plus I haven't talked about "small strings yet), so usually you wouldn't let users allocate giant heap memory so easily. We'll get deeper into strings later on.

Tutorial Playlist:

Repository:

Any questions/comments? Join us on discord:

while loops: (0:00)
while loops + input: (0:46)
stream buffer: (3:16)
homework and outro: (7:31)

Social

Patreon:

Channel Memberships:

#gamedev
Рекомендации по теме
Комментарии
Автор

In this video we build a very simple game loop using while loops and std::cin etc.
I decided not to clear the console (or get key presses) because I didn't feel like using old libraries. You can if you want to (try googling).
For your homework, try creating your own game loop using everything you've learned so far.

(8:57) This is a simplified example (plus I haven't talked about "small strings yet), so usually you wouldn't let users allocate giant heap memory so easily. We'll get deeper into strings later on.

Tutorial Playlist:

Repository:

Any questions/comments? Join us on discord:

Roundbeargames
Автор

Great! Thanks for this tutorial! Easy and useful!

gamedevstanislove
visit shbcf.ru