Submissions by leaf tagged lua

  • made the game over text prettier !
    (font is Lato by Ɓukasz Dziedzic)
  • made the keyboard movement faster again, and made shift slow it down
  • learnt how to actually use ParticleSystem properly, insteadof recreating it each time and transforming it in draw()
    (this means if you merge two pairs quickly, the particles from the first pair wont immediately disappear as the particles for the second one get spawned !)
  • randomly flip the fruits as well

so i also made the "game over" condition check the velocity of the body above the line, which should make it not possible to accidentally lose by double-clicking !

also, made the fruits a bit bigger again ...

oh, and f5 or ctrl+r restarts the game now

(yes im posting a "before" screenshot again !)
so since i was storing the items as keys in a table, sometimes when i dropped a new fruit, the other ones would be shuffled around in memory, and suddenly change which one is drawn in front of other !
i fixed this by keeping a separate table, and iterating it in love.draw