It's not well documented in the docs, and it took me a bit to figure out. In order to draw primitives, first you need to set the width of the line. function load() love.graphics.setLine(1) end Then, the docs don't mention how to set the type of drawing. It's a constant, rather than a string love.gra...
http://love2d.org/docs/keyreleased.html There's a mistake in the examples: # -- Keyreleased: Called whenever a key was released. # function mousereleased(key) # -- I don't want to register spaces. # if key ~= love.key_space then # lastkey = key .. " released" # end # end in example 53, it ...
Oh, I forgot to mention that clicking on the screen puts more plants in the world. The current algorithm for calculating k-nearest neighbors is naive, so it's O(n^2). That'll be remedied as soon as I figure out how to do it. You can actually find all n nearest neighbors in O(n log n) time, but it's...
Hi all, I caught wind of Love on Hacker news, and I decided to try it out. Noticing that you guys were missing a flocking boid simulation in your demos, I decided to write one. The love file is attached at the bottom, and the details of it are in a blog post I wrote. http://webjazz.blogspot.com/2009...