Search found 6382 matches

by Robin
Fri Sep 18, 2015 8:50 am
Forum: Support and Development
Topic: about the offline documentation
Replies: 7
Views: 4377

Re: about the offline documentation

I tried with Chromium, it still looked fine to me. Sorry, I have no idea why your css is gone.
by Robin
Thu Sep 17, 2015 8:45 pm
Forum: Support and Development
Topic: about the offline documentation
Replies: 7
Views: 4377

Re: about the offline documentation

Looks OK to me. What browser do you use?
by Robin
Tue Sep 15, 2015 4:42 pm
Forum: Support and Development
Topic: about the offline documentation
Replies: 7
Views: 4377

Re: about the offline documentation

Looks like the CSS is missing. Did you copy that along with the HTML?
by Robin
Sun Sep 13, 2015 10:10 am
Forum: Support and Development
Topic: Box2d assertion in love.physics.newPolygonShape
Replies: 10
Views: 3122

Re: Box2d assertion in love.physics.newPolygonShape

One goes through (1, 3) and (4, 2) and the other through (1, 2) and (4, 3), don't they?
by Robin
Sat Sep 05, 2015 11:14 pm
Forum: Games and Creations
Topic: Becky
Replies: 10
Views: 11035

Re: Becky

Is that music going to be in the game itself? Because it's heavily sampling Star Wars, and this seems to be quite a grey area, legally speaking.
by Robin
Mon Aug 31, 2015 10:43 am
Forum: General
Topic: Nice one-liner for switching between "false" and "true"
Replies: 11
Views: 3900

Re: Nice one-liner for switching between "false" and "true"

You'll see this a lot as the ternary operator: x = (condition) and 1 or 2 But it doesn't work with nil in the 1st position, because or has higher precedence than, and (nil or 2) is always 2 as defined in 2.5.3 . I think what you mean is if you have C and A or B , it doesn't work if A is falsy (whic...
by Robin
Sat Aug 29, 2015 9:33 am
Forum: Support and Development
Topic: For loop speed test.
Replies: 1
Views: 986

Re: For loop speed test.

It won't make an important difference. That said, if you ever wonder what is faster, it's a good idea to time it. If you want to time it, do a lot of repetitions, because that will make a difference in speed more easily visible, and run the test multiple times and use the fastest run for comparison,...
by Robin
Thu Aug 27, 2015 11:07 pm
Forum: Support and Development
Topic: How to make a Tile?
Replies: 5
Views: 3551

Re: How to make a Tile?

Do you know Lua? If so, simply translate the code from Quby to Lua and you'll be 90% there, and we can help you with the final 10%. If not, you'll need to learn Lua first. I suggest reading Programming in Lua.
by Robin
Thu Aug 27, 2015 11:03 pm
Forum: General
Topic: Collision 'mesh' problem
Replies: 2
Views: 2025

Re: Collision 'mesh' problem

Here's a method that runs in O(log N) when moving N pixels Check goal pixel. If green, go there, if not, do a bisection. A bisection is like this: bisect from A (start) to B (end) check if the gap between A an B is large enough (say, larger than 1 pixel), if it isn't, move the player to A and stop t...
by Robin
Mon Aug 24, 2015 9:09 am
Forum: Support and Development
Topic: Need help with random map/city generator
Replies: 42
Views: 15881

Re: Need help with random map/city generator

The simplest way I can think of is: 1. keep a count of all the "nodes" 2. create an empty set Visited and an empty set Frontier 3. temporarily make the blockade 4. start from one of the nodes, add that node to Visited and Frontier 5. pick a node from Frontier, if Frontier is empty go to st...