Log In  


Cart #cckey-2 | 2024-05-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

CCKEY (Inject below)

I saw some talking about what control style is better, so i created this. The end to all controls.

KeyRnd inject

If youd like to use this in other cartridges, here is the code. simply add this to a new code tab,
and change the inputs if you have other vars for those. Thanks for using this thing!

--[[keyrnd by antibrain]]
--[[do not eat]]

--possible keys. dont change unless you have to.
possible={}foreach(split([[
abcdefghijklmnoqrstuvqxyz`\-=[];',./
]],""),function(t)if t!=" " and t!="" then
add(possible,t)end end)poke(0x5f2d,1)
--write input vars here, seperated by a space.
foreach(split([[
k_dash k_jump]]," "),function(k)
local key=rnd(possible)
del(possible,key)_𝘦𝘯𝘷[k]=key end)
_btn=btn function btn(b)
if type(b)=='number' then
return _btn(b)end return key==b
end(_init or stat)()::█::
(_update or _update60 or stat)();
(_draw or stat)()key=stat(31)
flip()goto █

CHANGELOG

CCKEY CHANGELOG

v1.1:
- Added - Shows controls after touching summit flag. [CCKEY]
- Fixed - Can rarely assign an empty string to variable. [KEYRND/CCKEY]
- Removed - KEYRND Cartridge.
    - Simply just use the code above.

v1.2:
- Added - Missing keys [CCKEY]
    - Full key list is now "abcdefghijklmnoqrstuvqxyz`\-=[];',./"



[Please log in to post a comment]