Could you explain me these three lines again? What is k for and how is s changed? And direction[1] cannot be 3 or 2 values at once. What does that do then?zorg wrote: ↑Fri Aug 02, 2019 5:47 pmCode: Select all
love.keypressed = function(k,s) if s == 'up' then direction[1] = love.keyboard.isScancodeDown('down') and direction[1] or 1.0
Apart from that, I find your explanation very great and I love it that it is so detailed. Thanks for spending this time explaining me all this.
And I made minor changes: (You changed position[1] two times and with "up" you went down and vice versa)