Last active
August 29, 2015 14:17
-
-
Save Wohlstand/ccdb82dc8a2d941dec08 to your computer and use it in GitHub Desktop.
Fixed code to MistaEpic (smbx.org)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Wrong | |
left = 3 | |
player=Player() | |
function onLoop() | |
printText(tostring(left),30, 160) | |
function onKeyDown(keycode) | |
if(keycode==KEY_RUN) then | |
left = left - 1 | |
end | |
end | |
end | |
-- Fixed | |
left = 3 | |
player=Player() | |
function onLoop() | |
printText(tostring(left),30, 160) | |
end | |
function onKeyDown(keykode) | |
if(keycode==KEY_RUN) then | |
left = left - 1 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment