Is there any way I can put something in the script, so that if I press a key, it responds with a command? If so, how?
Is there any way I can put something in the script, so that if I press a key, it responds with a command? If so, how?
On the platform for creating games called Love 2d
you can do this.
Example:
function love.keypressed(key)
print(string.format("você apertou a letra '%s'", key)
end
Reference: link