Difference between revisions of "Beginner C++ Game Programming Tutorial 17"
From Chilipedia
(Created page with "In this video we do the timestep thing in the Poo game. That means we measure (with <code>std::chrono::steady_clock</code>) the time taken for each frame, and then step the ga...") |
(→Notes) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
== Topics Covered == | == Topics Covered == | ||
* <code>std::chrono</code> shit | * <code>std::chrono</code> shit | ||
− | * Simple timestep algorithm | + | * Simple variable timestep algorithm |
− | * Namespaces, <code>using</code>, and <code>using namespace</code> | + | * Namespaces, <code>using</code>, and <code>using namespace</code> |
== Video Timestamp Index == | == Video Timestamp Index == | ||
Line 12: | Line 12: | ||
The homework is to modify the Snek game to use a variable timestep. | The homework is to modify the Snek game to use a variable timestep. | ||
− | The solution video is | + | The solution video is [https://youtu.be/LMxlBIYkYHc here]. |
+ | |||
+ | == Notes == | ||
+ | This tutorial introduces a simple delta timestep. It will suffice for where we are at in the tutorial series. There are more sophisticated methods that are better, but also more complicated. I may cover them in a future video. In the meanwhile, if you are interested, check out this link: [http://gafferongames.com/game-physics/fix-your-timestep/ Fix Your Timestep]. | ||
== Links == | == Links == |
Latest revision as of 13:51, 17 January 2017
In this video we do the timestep thing in the Poo game. That means we measure (with std::chrono::steady_clock
) the time taken for each frame, and then step the game's simulation by that amount. We also learn about the using
keyword.
Topics Covered
-
std::chrono
shit - Simple variable timestep algorithm
- Namespaces,
using
, andusing namespace
Video Timestamp Index
Homework
The homework is to modify the Snek game to use a variable timestep.
The solution video is here.
Notes
This tutorial introduces a simple delta timestep. It will suffice for where we are at in the tutorial series. There are more sophisticated methods that are better, but also more complicated. I may cover them in a future video. In the meanwhile, if you are interested, check out this link: Fix Your Timestep.