One of a powerful uses of std::variant
is to implement State Machines. Some time ago I showed a simple example, but today we have something bigger. In today’s article by Nikolai Wuttke you’ll see how to leverage std::variant
and build a space game!
↧
Space Game: A std::variant-Based State Machine by Example
↧