Search found 6382 matches
- Fri Sep 18, 2015 8:50 am
- Forum: Support and Development
- Topic: about the offline documentation
- Replies: 7
- Views: 4412
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.
- Thu Sep 17, 2015 8:45 pm
- Forum: Support and Development
- Topic: about the offline documentation
- Replies: 7
- Views: 4412
Re: about the offline documentation
Looks OK to me. What browser do you use?
- Tue Sep 15, 2015 4:42 pm
- Forum: Support and Development
- Topic: about the offline documentation
- Replies: 7
- Views: 4412
Re: about the offline documentation
Looks like the CSS is missing. Did you copy that along with the HTML?
- Sun Sep 13, 2015 10:10 am
- Forum: Support and Development
- Topic: Box2d assertion in love.physics.newPolygonShape
- Replies: 10
- Views: 3171
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?
- Sat Sep 05, 2015 11:14 pm
- Forum: Games and Creations
- Topic: Becky
- Replies: 10
- Views: 11160
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.
- Mon Aug 31, 2015 10:43 am
- Forum: General
- Topic: Nice one-liner for switching between "false" and "true"
- Replies: 11
- Views: 3960
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...
- Sat Aug 29, 2015 9:33 am
- Forum: Support and Development
- Topic: For loop speed test.
- Replies: 1
- Views: 988
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,...
- Thu Aug 27, 2015 11:07 pm
- Forum: Support and Development
- Topic: How to make a Tile?
- Replies: 5
- Views: 3565
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.
- Thu Aug 27, 2015 11:03 pm
- Forum: General
- Topic: Collision 'mesh' problem
- Replies: 2
- Views: 2033
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...
- Mon Aug 24, 2015 9:09 am
- Forum: Support and Development
- Topic: Need help with random map/city generator
- Replies: 42
- Views: 16038
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...