Roundbeargames | [C++ Tutorial #9] While Loops, Input, Game Loop @Roundbeargames | Uploaded October 2020 | Updated October 2024, 8 minutes ago.
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:
youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy
Repository:
github.com/RoundBearChoi/CPP_Tutorial_Projects
Any questions/comments? Join us on discord:
discord.gg/hAFTgcA
while loops: (0:00)
while loops + input: (0:46)
stream buffer: (3:16)
homework and outro: (7:31)
Social
twitter: twitter.com/roundbeargames
facebook: facebook.com/roundbeargames17
hive: peakd.com/@roundbeargames/posts
linkedin: linkedin.com/in/jangwon-choi-15041a9a
Patreon:
patreon.com/roundbeargames
Channel Memberships:
youtube.com/roundbeargames/join
#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:
youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy
Repository:
github.com/RoundBearChoi/CPP_Tutorial_Projects
Any questions/comments? Join us on discord:
discord.gg/hAFTgcA
while loops: (0:00)
while loops + input: (0:46)
stream buffer: (3:16)
homework and outro: (7:31)
Social
twitter: twitter.com/roundbeargames
facebook: facebook.com/roundbeargames17
hive: peakd.com/@roundbeargames/posts
linkedin: linkedin.com/in/jangwon-choi-15041a9a
Patreon:
patreon.com/roundbeargames
Channel Memberships:
youtube.com/roundbeargames/join
#gamedev