$ ./guess_the_languageGame Dev
Game Dev · medium · #214

Why wrap player actions as command objects?

  1. To run each action on the GPU
  2. To make undo and replay easy
  3. To skip input validation
  4. To store them in the scene file
Each command records what it did, so it can be reversed, queued, logged for replays or sent over the network.
Play Game Dev ▸