Search found 419 matches

by darkfrei
Sun Oct 03, 2021 10:46 am
Forum: Games and Creations
Topic: An Organizer made using LÖVE!
Replies: 5
Views: 2105

Re: An animation library for Lua

Gunroar:Cannon() wrote: Sun Oct 03, 2021 9:10 am Cool, though this should've been in library and tools ... as it's a ... library. :?
It's not a library, it's an example how this library can be used :)
You can make a lot of examples or creations with the same library. Here is one of them.
by darkfrei
Fri Oct 01, 2021 5:42 pm
Forum: Support and Development
Topic: How to find all traces of an object
Replies: 1
Views: 1554

Re: How to find all traces of an object

Use pairs, not ipairs.

Or use the fast_remove:

Code: Select all

function fast_remove (tabl, index)
    tabl[index]=tabl[#tabl]
    tabl[#tabl]=nil
end
 
It needs less time, but break the array.
by darkfrei
Thu Sep 30, 2021 12:10 pm
Forum: Support and Development
Topic: Love2d game questions
Replies: 4
Views: 1407

Re: Love2d game questions

1) How to finalize my title screen: I have made a screen display on the start it looks good I have a play button but the button does not work. You are need to check it the player clicks the button: function is_in_area (mx, my, x, y, w, h) -- mouse position and rectangle if (mx > x) and (mx < (x + w...
by darkfrei
Mon Sep 27, 2021 8:02 am
Forum: General
Topic: love.timer.sleep resolution test
Replies: 15
Views: 5014

Re: love.timer.sleep resolution test

I have doubts about the use of love.timer.sleep(0.001) in the default love.run, especially after reading this . The uncertainty is killing me, but I don't have an up-to-date Windows installation to verify this, so I would like to ask you guys to run this small test and report your results and your ...
by darkfrei
Sun Sep 26, 2021 9:27 pm
Forum: Libraries and Tools
Topic: love-steam - Steamworks integration for LÖVE
Replies: 9
Views: 15097

Re: love-steam - Steamworks integration for LÖVE

Btw. there is also a project called lua-steam and they provide already precompiled binaries: https://github.com/uspgamedev/luasteam Thanks! Could you please explain how to make steam stats, achievements and leaderboards? For example with as-small-as-possible-example. For example stats: "stat_1...
by darkfrei
Sun Sep 26, 2021 12:45 pm
Forum: Support and Development
Topic: Building with my own LuaJIT
Replies: 3
Views: 1870

Re: Building with my own LuaJIT

Not sure bur maybe the replacing of lua51.dll
by darkfrei
Mon Sep 20, 2021 2:20 pm
Forum: Support and Development
Topic: [Fixed] Simple sine/radians problem - I think
Replies: 5
Views: 2466

Re: [Fixed] Simple sine/radians problem - I think

pgimeno wrote: Mon Sep 20, 2021 1:31 pm That's more like engine power anyway, not speed, since it applies to the force. Naming the variables appropriately can protect you from some bugs.
It can be something like specific impulse, that is like-a-speed and has unit as m/s (or just in seconds in other notation).
by darkfrei
Sun Sep 19, 2021 4:05 pm
Forum: Games and Creations
Topic: Railway Track
Replies: 7
Views: 3979

Re: Railway Track

You can always add another canvas for order and instead of painting you can erase pixels too. A quick hack in of my approach: main.lua.zip Nice! Didn't know that you can erase by writing with the color {0,0,0,0} with color replacing. -- new canvas tmp = love.graphics.newCanvas() love.graphics.setCa...
by darkfrei
Sun Sep 19, 2021 10:19 am
Forum: Games and Creations
Topic: Railway Track
Replies: 7
Views: 3979

Re: Railway Track

Is it necessary to get this offset? You could just draw two lines of different width on top of each other i would say. For the ties it is also possible to draw them short and thick, may be faster. This would have been a use case for stipple lines, but that setting was removed. But rails must be abo...
by darkfrei
Sat Sep 18, 2021 8:59 pm
Forum: Games and Creations
Topic: Railway Track
Replies: 7
Views: 3979

Railway Track

Hi all! There is my try to make railway track, where it's path is defined as love.graphics's line. Used functions: Get offset polyline - the right and left rails are just the same line as defined, but with offset :) Get Points Along Line - every tie must be on the same distance, but the defined poly...