Search found 16 matches

by iamwilhelm
Mon Mar 02, 2009 1:32 am
Forum: Support and Development
Topic: Drawing primitives like circles and rectangles
Replies: 19
Views: 13266

Re: Drawing primitives like circles and rectangles

I tried it out again to reproduce it. It only happens with rectangles.

Code: Select all

love.graphics.rectangle(love.draw_line, 100, 100, 200, 200)
without setting the width, it doesn't show up. I'll put it as a bug in the issue tracker
by iamwilhelm
Mon Mar 02, 2009 12:45 am
Forum: Support and Development
Topic: Drawing primitives like circles and rectangles
Replies: 19
Views: 13266

Drawing primitives like circles and rectangles

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...
by iamwilhelm
Sun Mar 01, 2009 11:49 pm
Forum: General
Topic: Typo in documentation
Replies: 3
Views: 2028

Typo in documentation

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 ...
by iamwilhelm
Fri Feb 13, 2009 6:23 pm
Forum: Games and Creations
Topic: Introducing Frock, a flying chicken flocking simulation
Replies: 8
Views: 6341

Re: Introducing Frock, a flying chicken flocking simulation

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...
by iamwilhelm
Thu Feb 12, 2009 6:47 pm
Forum: Games and Creations
Topic: Introducing Frock, a flying chicken flocking simulation
Replies: 8
Views: 6341

Re: Introducing Frock, a flying chicken flocking simulation

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.
by iamwilhelm
Thu Feb 12, 2009 6:26 pm
Forum: Games and Creations
Topic: Introducing Frock, a flying chicken flocking simulation
Replies: 8
Views: 6341

Introducing Frock, a flying chicken flocking simulation

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...