Cheat codes example
Maybe we want to add cheat codes to our game, either for ourselves to test features quickly, or for the players to have fun with. Processors are perfect for this, and you can probably already guess why.
As you can see, we simply check if the input matches any of our cheat codes, and if it does, we replace the entire input string with an actual command.
Last updated
Was this helpful?