Code snippets for LD42 - Click to move

There a couple of things I keep forgetting when coding games. To help myself (and other people!) remember I'm going to open source a bunch of code snippets over the next few days. I like using Love2d for this kind of stuff but the concepts should work anywhere.

Here's one on basic click to move style movement for a 2d game: https://gist.github.com/gtrogers/0a224b46381f4084e72bcbaee533e08f