Search found 437 matches

by darkfrei
Tue Nov 23, 2021 11:23 pm
Forum: Support and Development
Topic: making randomized path less "shaky"
Replies: 5
Views: 386

Re: making randomized path less "shaky"

Maybe helpful: 5.5 Wander Steering Behavior - The Nature of Code

https://natureofcode.com/book/chapter-6 ... 20Velocity

Image

https://youtu.be/ujsR2vcJlLk


by darkfrei
Thu Nov 18, 2021 10:48 am
Forum: General
Topic: Gifs or Webm
Replies: 10
Views: 1651

Re: Gifs or Webm

Gunroar:Cannon() wrote: Thu Nov 18, 2021 8:23 am I honestly have no idea and I mostly just say "G - I - F" :rofl:
[dji-ai-ef]?
by darkfrei
Tue Nov 16, 2021 10:54 pm
Forum: Support and Development
Topic: How to do cleaner fog of war
Replies: 11
Views: 1569

Re: How to do cleaner fog of war

No shaders:


sight-and-light-05.png
sight-and-light-05.png (108.52 KiB) Viewed 806 times
sight-and-light-05.love
(2.15 KiB) Downloaded 14 times
by darkfrei
Tue Nov 16, 2021 8:17 pm
Forum: Support and Development
Topic: How to do cleaner fog of war
Replies: 11
Views: 1569

Re: How to do cleaner fog of war

I don't know how to fix that we are need the second collision, not the first one.

sight-and-light-03.love
(1.74 KiB) Downloaded 11 times

(fixed)
sight-and-light-04.png
sight-and-light-04.png (54.62 KiB) Viewed 821 times
sight-and-light-04.love
(1.83 KiB) Downloaded 10 times
by darkfrei
Tue Nov 16, 2021 4:56 pm
Forum: Support and Development
Topic: How to do cleaner fog of war
Replies: 11
Views: 1569

Re: How to do cleaner fog of war

Starting code: function getAllUniquePoints () local map, uniquePoints = {}, {} for i, segment in ipairs (segments) do for j = 1, #segment-1, 2 do local x, y = segment[j], segment[j+1] if map[x] then map[x][y] = true else map[x] = {[y] = true} end end end for x, ys in pairs (map) do for y, bool in pa...
by darkfrei
Sat Nov 13, 2021 9:51 am
Forum: Support and Development
Topic: How to set Refresh Rate?
Replies: 7
Views: 1442

Re: How to set Refresh Rate?

Not sure, but it looks like that you need to change the love.run function
https://love2d.org/wiki/love.run
by darkfrei
Wed Nov 10, 2021 10:47 pm
Forum: General
Topic: LuaJIT/Love multicore
Replies: 6
Views: 1618

Re: LuaJIT/Love multicore

Don't use multithreading if you can make same without it :)
https://love2d.org/wiki/love.thread
by darkfrei
Mon Nov 08, 2021 4:26 pm
Forum: Support and Development
Topic: Forward-scrolling racing game - Storing the track
Replies: 10
Views: 3946

Re: Forward-scrolling racing game - Storing the track

I think that the result must be like

by darkfrei
Mon Nov 08, 2021 3:52 pm
Forum: Support and Development
Topic: Forward-scrolling racing game - Storing the track
Replies: 10
Views: 3946

Re: Forward-scrolling racing game - Storing the track

I think that's something like this (here is without perspective):


2021-11-08T16_51_34.png
2021-11-08T16_51_34.png (32.17 KiB) Viewed 1564 times
generated-2d-road-01.love
(1.08 KiB) Downloaded 17 times
by darkfrei
Mon Nov 08, 2021 11:27 am
Forum: Support and Development
Topic: Forward-scrolling racing game - Storing the track
Replies: 10
Views: 3946

Re: Forward-scrolling racing game - Storing the track

You can store the difference between sectors: Ii you moves along Y axis, then it can be: {x=0, y=10}, -- straight segment {x=-10, y=10}, -- left "curve", where you are need to press the left key to follow the road The y vector component can be optional if the length is a "standard&quo...