Search found 205 matches

by darkfrei
Thu May 06, 2021 11:13 pm
Forum: Games and Creations
Topic: Pathfinding with weights and walls
Replies: 2
Views: 47

Re: Pathfinding with weights and walls

dusoft wrote: Thu May 06, 2021 8:50 pm Is that slow on purpose?
Yes, it's too fast for understanding by 60 fps.
by darkfrei
Thu May 06, 2021 5:37 pm
Forum: Games and Creations
Topic: Pathfinding with weights and walls
Replies: 2
Views: 47

Pathfinding with weights and walls

Hi all! My try to make a pathfinding (not A*), that can find the best maze solution. Here are 4 cells: yellow, that costs 0; dark yellow, that costs 1; dark dark yellow, that costs 2; dark dark dark blue, that costs 3, but not walkable :) Straight step costs 0.01; Side step (or direction changing) c...
by darkfrei
Thu May 06, 2021 6:36 am
Forum: Games and Creations
Topic: Don't learn to code - WesternPunk
Replies: 14
Views: 10177

Re: Don't learn to code - WesternPunk

I was sure that this thing is his hair, not eye.
by darkfrei
Wed May 05, 2021 2:43 am
Forum: Support and Development
Topic: [Solved] "Unmodifiable" table gets wiped after using it
Replies: 7
Views: 255

Re: "Unmodifiable" table gets wiped after using it

GVovkiv wrote: Tue May 04, 2021 4:22 pm Isn't it just copy content from table, without linking?
Uh, nevermind, it really just linked copy, my bad
And this was mine: https://love2d.org/forums/viewtopic.php ... 95#p238395
by darkfrei
Tue May 04, 2021 4:15 pm
Forum: Support and Development
Topic: [Solved] "Unmodifiable" table gets wiped after using it
Replies: 7
Views: 255

Re: "Unmodifiable" table gets wiped after using it

I need to keep "choices" unmodified, to reuse it later. local choices = {1,2,3,4} local choices2 = choices -- linked copy You are need a make a copy, not linked copy: local choices = {1,2,3,4} local choices2 = {} -- new table, not linked to the "choices" for i, v in pairs (choic...
by darkfrei
Tue May 04, 2021 3:54 pm
Forum: Support and Development
Topic: How to Generate Gibberish voices
Replies: 14
Views: 402

Re: How to Generate Gibberish voices

You can (probably) record some voice samples, get the Fourier transform and then generate some random simplified versions of this samples.
by darkfrei
Tue May 04, 2021 3:41 pm
Forum: Support and Development
Topic: Coordinates for lines vs points (and pixel grid alignment for points)
Replies: 20
Views: 1410

Re: Coordinates for lines vs points (and pixel grid alignment for points)

Can't reproduce. I get 10 both times, not 10.0. Edit: Ah, it happens in Lua 5.3, which has separate integer and float types. Löve only supports 5.1. Normal program languages have a lot of data types and the variable cannot change the type of it. I think that's possible to make such multi-types-data...
by darkfrei
Tue May 04, 2021 7:05 am
Forum: Support and Development
Topic: Coordinates for lines vs points (and pixel grid alignment for points)
Replies: 20
Views: 1410

Re: Coordinates for lines vs points (and pixel grid alignment for points)

It's interesting, that Lua has no integer data type, but there is small different:

Code: Select all

a = 10 
b = 100/10 -- looks like 10
print(a) -- prints 10
print(b) -- prints 10.0
print(tostring(a==b)) -- prints true
Somehow 10.0 will be same as 10, but it prints it in other way.
by darkfrei
Mon May 03, 2021 9:22 am
Forum: General
Topic: Using love for a battle demonstrator
Replies: 10
Views: 1230

Re: Using love for a battle demonstrator

yes, you ar right, I am ready to do it, now that I have all the tiles. the zoom level 13 weights 1.2Go. Do you think love2d can load such a big image ? My laptop has 16Go of RAM. It will be nice to load only needed images, cut big image to something like 4096x4096 pixel chunks, load what you see an...