Search found 81 matches

by bdjnk
Fri Jul 25, 2014 8:23 pm
Forum: Games and Creations
Topic: Hangman - for the extraordinarily bored.
Replies: 5
Views: 1863

Hangman - for the extraordinarily bored.

I start many projects, but unfortunately I rarely finish them. Well, here's one to make me feel a bit better about myself. It's hangman, in the most simplistic fashion possible. A game for the extremely bored. When a game ends, hit space to start another. hangman.love Does contain some useful hints ...
by bdjnk
Thu Jul 17, 2014 1:25 pm
Forum: Libraries and Tools
Topic: A good, reliable and performant Voronoi implementation
Replies: 12
Views: 4705

Re: A good, reliable and performant Voronoi implementation

So I'm back, and I have a couple questions. Occasionally this will happen: voronoi bug.png Are these errant lines the result of points in the same location, or is something else going wrong? Also, is there any simple way to get the vertices associated with a given point? More specifically, I'm think...
by bdjnk
Wed Jul 16, 2014 12:15 pm
Forum: Libraries and Tools
Topic: A good, reliable and performant Voronoi implementation
Replies: 12
Views: 4705

Re: A good, reliable and performant Voronoi implementation

This is an amazing library. I read the Wikipedia article, and was thrilled by the possibilities. Excellent work.

p.s. It was probably left in by accident, but voronoi.run should not be drawing points (or anything).

p.p.s I would also move movement out of voronoi.run to make movement more flexible.
by bdjnk
Wed Jul 09, 2014 6:02 am
Forum: Support and Development
Topic: Help with Collisions
Replies: 5
Views: 788

Re: Help with Collisions

Looking at your code, it's nicely structured, and even with the variable names and comments in something I don't read I was able to quickly see what was happening. Here's the main thing I noticed: You didn't even try to detect the collision. Let's talk about what's necessary. There are really two se...
by bdjnk
Sun Jul 06, 2014 7:51 pm
Forum: General
Topic: An ongoing problem for löve distribution.
Replies: 29
Views: 6126

Re: An ongoing problem for löve distribution.

we are facing a problem with distribution: no official way of distributing for linux, .deb's would be really neat to have, are anyone working on it or willing to do it? because im sure we can all agree that .deb's would be really good to have. Sure debs would be cool, but what about rpms? What abou...
by bdjnk
Wed Jul 02, 2014 6:12 pm
Forum: Support and Development
Topic: How do I make an image change when clicked?
Replies: 5
Views: 1239

Re: How do I make an image change when clicked?

Basically you want to wait for a click (with mousereleased ), check that you clicked on the original image, and replace it with your new one. function love.load(args) img = love.graphics.newImage("original.png") end function love.mousereleased(x, y, button) if x > 10 and x < 10 + img:getWidth() and ...
by bdjnk
Tue Jul 01, 2014 6:33 pm
Forum: Support and Development
Topic: How to set image width and height?
Replies: 6
Views: 1791

Re: How to set image width and height?

I think that this method is pretty bad when I want to make an image with an exact width and height so.. There is any other method to change the width and height of an image? There is not. But what's "bad" about the scaling parameters, they don't have to be integers! It's 'bad' because it is a scali...
by bdjnk
Tue Jul 01, 2014 4:45 pm
Forum: Support and Development
Topic: Using Loop to animate Sprites
Replies: 3
Views: 761

Re: Using Loop to animate Sprites

What does i=1,8 mean? Whenever I have a question about Lua, I visit these sites (the links take you to the relevent section on for loops): The lua-users wiki (usually the most helpful, has various tips and tricks). The Lua Reference Manual (mostly useful if you just need a reminder or an exact tech...
by bdjnk
Mon Jun 30, 2014 5:12 am
Forum: Support and Development
Topic: Table sorting strings
Replies: 3
Views: 689

Re: Table sorting strings

The order when looping with pairs is undefined , just becuase you added one item after adding another doesn't mean that's the order they'll be in with pairs. To loop over an array, use ipairs . Unlike pairs, it only gives you the consecutive integer keys from 1 , and it guarantees their order. With...
by bdjnk
Fri Jun 27, 2014 1:35 pm
Forum: Support and Development
Topic: From project designing to code implementation
Replies: 4
Views: 1533

Re: From project designing to code implementation

We've read, that people make their own physics and collision system but we just don't know how to handle that amount of cases in the code (in a polite way). It's mostly the math that trips people up. They instinctively avoid it and try and do things with code instead (that doesn't even make sense, ...