Search found 222 matches

by darkfrei
Sun May 09, 2021 8:58 am
Forum: Support and Development
Topic: Program aborted (core dumped)
Replies: 2
Views: 260

Re: Program aborted (core dumped)

GVovkiv wrote: Sun May 09, 2021 6:55 am Full error log maybe?
Where is it?
by darkfrei
Sat May 08, 2021 9:18 pm
Forum: Support and Development
Topic: Program aborted (core dumped)
Replies: 2
Views: 260

Program aborted (core dumped)

Hi devs!

I cannot reproduce, but my friend says that version 02 and 03 of double pendulum is corrupted and gives this error in stdout: aborted (core dumped).
https://love2d.org/forums/viewtopic.php ... 31#p240731

What I need to do?
by darkfrei
Sat May 08, 2021 8:40 pm
Forum: Games and Creations
Topic: Double pendulum
Replies: 13
Views: 581

Re: Double pendulum

The third version: 10000 double pendulums, on start the difference is just (1/1000000) radians and it makes big difference after few seconds.

Many thanks to Alexander Gustafsson: https://www.youtube.com/watch?v=H7nMP-MYyIc
by darkfrei
Sat May 08, 2021 3:34 pm
Forum: Games and Creations
Topic: Double pendulum
Replies: 13
Views: 581

Re: Double pendulum

Second version:

Draw with lines, not points.

Press space to start.
by darkfrei
Fri May 07, 2021 10:59 pm
Forum: Games and Creations
Topic: Double pendulum
Replies: 13
Views: 581

Double pendulum

Hi all!

Here is my try to make a double pendulum (thanks for reddit):
by darkfrei
Fri May 07, 2021 8:54 pm
Forum: Games and Creations
Topic: Pathfinding with weights and walls
Replies: 5
Views: 484

Re: Pathfinding with weights and walls

Version 02: same as version 01, but fast calculation and it counts steps: 1145 steps for full solution. Possible optimization for next version: update path optimizations before searching new paths. pathfinding-one-02.love Upd: Yes, the version 03 needs just only 674 steps. 2021-05-07T23_04_34-Untitl...
by darkfrei
Fri May 07, 2021 7:44 am
Forum: General
Topic: What is your advice for saving game state?
Replies: 6
Views: 539

Re: What is your advice for saving game state?

I save some table data as table:

savefile.lua:

Code: Select all

return {
	player = {name = "Hero", health = 10, position = {x=4, y=8}},
	enemies = {
		{health = 8, position = {x=10, y=18}},
		{health = 12, position = {x=12, y=20}, hidden = true},
	}
}
And the

Code: Select all

save = require ('savefile')
to load it.
by darkfrei
Thu May 06, 2021 11:13 pm
Forum: Games and Creations
Topic: Pathfinding with weights and walls
Replies: 5
Views: 484

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: 5
Views: 484

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...