Use WASD or arrow keys to move. Avoid the grey dementors. Collect the yellow circles to obtain good memories. Clicking or tapping consumes 1 good memory and in return fires a spell at the place that was clicked. If the spell hits a dementor, you scare away the dementor and gain 1 score.
I took @superstarlego2 's project and made it a million times better.