Search found 873 matches

by veethree
Tue Oct 12, 2021 10:53 pm
Forum: Libraries and Tools
Topic: [LIBRARY] tt.lua - Text triggers for lua!
Replies: 5
Views: 8066

Re: [LIBRARY] tt.lua - Text triggers for lua!

I like it? Could the key arguments be in a table or something instead of one long string? Sure. I've updated it. Now the tt:new() function can also take a table of strings tt:new({"w", "w"}, print, "double w") Also added an input filter function, So you can easily set ...
by veethree
Mon Oct 11, 2021 1:53 pm
Forum: Games and Creations
Topic: Autarky - proof of concept. Help me make it interesting
Replies: 10
Views: 10604

Re: Autarky - proof of concept. Help me make it interesting

I can’t test it atm due to being on my phone. But this sounds like a good concept for one of those idle games. Where you just open it every now and again and see how your village has progressed.

Those tend to work better as mobile games.
by veethree
Mon Oct 11, 2021 12:43 pm
Forum: Libraries and Tools
Topic: [LIBRARY] tt.lua - Text triggers for lua!
Replies: 5
Views: 8066

[LIBRARY] tt.lua - Text triggers for lua!

I'm sure there is a more proper name for what this does, I just don't know what it is, Or how to look it up. So i'm just calling it text triggers. This library helps you call a certain function when a certain sequence of keys is pressed. Just like old video game cheat codes. Proper documentation on ...
by veethree
Sat Oct 09, 2021 1:08 pm
Forum: Support and Development
Topic: Getting direction from point a to point b
Replies: 14
Views: 12762

Re: Getting direction from point a to point b

What you’re looking for is the angle between two points.

For that you need the atan2 function.

Code: Select all

angle = math.atan2(y2 - y1,  x2 - x1)
by veethree
Fri Oct 08, 2021 2:38 pm
Forum: Support and Development
Topic: [Solved]Löve performance issues on Ubuntu/Linux ?
Replies: 9
Views: 6830

Re: Löve performance issues on Ubuntu/Linux ?

I’m not aware of any Ubuntu specific issues. I’ve used love on Ubuntu before without a hitch. Could you post your code?

EDIT: I did a google and found this: https://love2d.org/forums/viewtopic.php?t=8322
by veethree
Fri Oct 08, 2021 12:50 pm
Forum: Libraries and Tools
Topic: [LIBRARY] POSTER v0.3 - Post processing shaders made simple.
Replies: 4
Views: 7417

Re: [LIBRARY] POSTER v0.3 - Post processing shaders made simple.

New version. It previously had issues when the canvas had transparent sections. Now those are impossible. Also i've made a more sensible demo which is an actual game now, instead of just a stock photo, Which is the intended use case for this. The demo also showcases how to animate macros, Which the ...
by veethree
Wed Oct 06, 2021 12:55 am
Forum: Libraries and Tools
Topic: [LIBRARY] POSTER v0.3 - Post processing shaders made simple.
Replies: 4
Views: 7417

Re: POSTER - Post processing shaders made simple.

yetneverdone wrote: Tue Oct 05, 2021 11:50 pm This is really cool! Ive taken a look at the source files and it's written nicely and does not suffer from the issues that moonshine does!
What issues does moonshine have? I've never properly used it but the few times i messed around with it i didn't notice any issues
by veethree
Tue Oct 05, 2021 10:55 pm
Forum: Libraries and Tools
Topic: [LIBRARY] POSTER v0.3 - Post processing shaders made simple.
Replies: 4
Views: 7417

[LIBRARY] POSTER v0.3 - Post processing shaders made simple.

Hello! So i was working on some stuff and ended up completely abandoning it to go on a huge detour into shaders. That detour resulted in this library which i've decided to call POSTER. I want to say that the name stands for " P ost processing O n STER oids", Cause that would be quite cleve...
by veethree
Thu Sep 30, 2021 10:07 pm
Forum: Support and Development
Topic: Shader uniform 'x' does not exist.
Replies: 2
Views: 2971

Re: Shader uniform 'x' does not exist.

Try this: for i = 1, #lights do g3d.shader:send("lights[" .. i-1 .. "].position", lights[i].position) g3d.shader:send("lights[" .. i-1 .. "].color", lights[i].color) end Don't ask me why it is that way. I can't believe how intuitive that is. Thanks a lot!
by veethree
Thu Sep 30, 2021 11:53 am
Forum: Support and Development
Topic: Love2d game questions
Replies: 4
Views: 3227

Re: Love2d game questions

When asking for help, It's always better to post your code. Then we can tailor our answers to your situation better. For a button to work you need to know where it is, and how big it is. Then check if the mouse is over it when the mouse is pressed. To replace the circle with an image, You load the d...