Search found 7 matches

by Pixelwar
Sun Nov 27, 2016 5:24 pm
Forum: General
Topic: How to import a library like this one ?
Replies: 6
Views: 4903

Re: How to import a library like this one ?

you can check out the teststruct.lua file, there are some examples including how to import.

Code: Select all

local lib = require"struct"
by Pixelwar
Tue Nov 01, 2016 8:30 pm
Forum: Games and Creations
Topic: Simple fractal tree generator
Replies: 2
Views: 3418

Re: Simple fractal tree generator

Update: Now you can edit how many new branches grow per old branch.
Some new screens:
A sierpinski tree
A sierpinski tree
screenshot6.jpg (61.09 KiB) Viewed 3061 times
screenshot5.jpg
screenshot5.jpg (57.74 KiB) Viewed 3061 times
by Pixelwar
Fri Sep 30, 2016 11:11 pm
Forum: Games and Creations
Topic: Simple fractal tree generator
Replies: 2
Views: 3418

Simple fractal tree generator

Simple fractal tree generator It's a very simple tree generator using fractal structures. The angle is the property with the most influence on the tree. For the juiceness enthusiasts I add an easy to handle animation option. The source code is licensed under MIT. The export options dont work (well)...
by Pixelwar
Mon May 11, 2015 6:39 pm
Forum: Support and Development
Topic: Strange cell values in 2d array with the help of random
Replies: 3
Views: 1719

Re: Strange cell values in 2d array with the help of random

Thanks, I'm stupid :rofl: , because I thought that the love.graphics.rectangle works after the pattern x1,y1,x2,y2 and not after x,y,width,height.
EDIT: And thanks for the tip @arampl
by Pixelwar
Mon May 11, 2015 6:11 pm
Forum: Support and Development
Topic: Strange cell values in 2d array with the help of random
Replies: 3
Views: 1719

Strange cell values in 2d array with the help of random

I wanted to fill a grid with about 50% true and 50% false. This I do with random(100). Then I draw the grid on the screen, so I think the grid was filled nearly with same amount of false and true, but every time I tested the code the amount of true was giant compared with the amount of false. I trie...
by Pixelwar
Sun May 10, 2015 8:07 pm
Forum: Support and Development
Topic: "Attempt to index a nil value"-error in head of if loop
Replies: 2
Views: 2015

"Attempt to index a nil value"-error in head of if loop

Hello,

I get a seemingly well-known error message("attempt to index a nil value") and I found some 'solutions', but no one helps, it's a little bit strange, because I doesn't index something with the critical code. I attach the .love file, hope you can help me.

Thanks :awesome: