Small Class allowing easy integration of cheat codes

Toad on discord initiated a class to enable cheat codes for his upcoming game and shared it with the community.
I modified the file and added a few things here and there to publish it on github for anyone who would want it.
The repository is here

A quick explanation below:

-- Create a code
-- Example: local myCode = Tanuk_CodeSequence(sequence, callbackReward, [isAllowMultipleCalls])
local sprCode = Tanuk_CodeSequence({"down", "left", "right", "left", "right"}, function() print("Code Complete") end)
local sprCode2 = Tanuk_CodeSequence({"up", "down", "up", "down", "left", "right"}, function() print("Not the Konami code") end, true) -- This code may be called multiple times

We hope this will help some of you guys as well. Any comments are welcome, obviously!

5 Likes