Cheatcode.lua
Add konami code style cheatcodes to your game. Intended for LÖVE
Install / Use
/learn @farzher/Cheatcode.luaREADME
Cheatcode
Add konami code style cheatcodes to your game. Intended for LÖVE
Usage
Cheatcode = require('cheatcode')
local codes = {}
codes['{up}{up}{down}{down}{left}{right}{left}{right}ba{return}'] = function() lives = lives + 99 end
codes.bighead = function() bighead = not bighead end
Cheatcode(codes)
function love.keypressed(key)
Cheatcode.handle(key)
end
Performance
Since this runs on every keypress, performance is important.
Don't worry, it runs in constant time O(1)! Feel free to add all the cheatcodes you want.
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
