Search found 90 matches

by Nelvin
Fri Sep 20, 2019 6:26 am
Forum: Support and Development
Topic: Best method to implement 9 slice?
Replies: 2
Views: 71

Re: Best method to implement 9 slice?

It's more efficient as changing the scissorrect will stop batching, so you'll create 9 draw calls. Also using scissors will be more complicated to implement as scissors are in screen coordinates, i.e. pixels, so you'd have to do more transformation work on your coordinates (in case you use any scali...
by Nelvin
Sat Aug 31, 2019 3:10 pm
Forum: Support and Development
Topic: Highly-nested table is causing weird errors...
Replies: 11
Views: 1175

Re: Highly-nested table is causing weird errors...

There's nothing to argue here, you made a bug (we all do, I got my first job in gamedev in 1996 and on any current day, if I write a serious amount of code I create bugs) but instead of trying to fix it/understand what you did wrong you're leaving with useless and wrong statements about Lua. It's no...
by Nelvin
Sat Aug 31, 2019 2:37 pm
Forum: Support and Development
Topic: Highly-nested table is causing weird errors...
Replies: 11
Views: 1175

Re: Highly-nested table is causing weird errors...

That's pure nonesense, the bug is just on your side.

But that's just my two cents ah, I meant lines ... of code

local myTab = {{{{{{{{{{{{{{{{{{{{ 42 }}}}}}}}}}}}}}}}}}}}
print( myTab[1][1][1][1][1][1][1][1][1][1][1][1][1][1][1][1][1][1][1][1])
by Nelvin
Wed Aug 14, 2019 1:52 pm
Forum: Support and Development
Topic: Is there a way to simulate a mouse click?
Replies: 2
Views: 635

Re: Is there a way to simulate a mouse click?

Not what you asked for but depending on what you aim to do maybe an alternative - https://www.autoitscript.com/site/ Years ago I used it for a simple automation task, I can't even remember what it was, but I know it worked quite well and was easy to use. If you need the rest of Löve too it's of cour...
by Nelvin
Tue Aug 06, 2019 8:49 am
Forum: General
Topic: wwwoooo
Replies: 15
Views: 4274

Re: wwwoooo

All things equal, for obvious reasons a framework would be less prone to bugs as it's just less and lowerlevel code with less potential for sideeffects due to the usage/data. But there's no such realworld situation where all things are equal so in the end it highly depends. The very general rule of ...
by Nelvin
Tue Jul 30, 2019 9:09 pm
Forum: Libraries and Tools
Topic: Another Lua Vector library
Replies: 14
Views: 3456

Re: Another Lua Vector library

Thank you for your comment, I had not thought about that, do you think that change is enough to optimize it and work properly? The suggested change is a good, and primarily memory and construction time optimization. Without it, each single vector requires more than 1 kb of memory, quite an overhead...
by Nelvin
Tue Jul 30, 2019 6:00 pm
Forum: General
Topic: Is it that easy to reverse-engineer a love2d game?
Replies: 22
Views: 4793

Re: Is it that easy to reverse-engineer a love2d game?

Oh while we are in the topic of commercial games made with Love2d, i want to point out that Kingdom Rush: Frontiers and Kingdom Rush Origins for PC are also made with Love2d both part of a very successful tower defense franchise (my personal favorite) will post the links if you want to check them o...
by Nelvin
Mon Jul 29, 2019 10:08 pm
Forum: Libraries and Tools
Topic: Another Lua Vector library
Replies: 14
Views: 3456

Re: Another Lua Vector library

I'd like to repeat what ivan said as it's not only not very efficient, it also wastes a lot of memory. The problem with the code, as it is, is not primarily the closure but whenever you create a vector instance (which, at the moment, you do in almost all core operations) you create a new table and t...
by Nelvin
Mon Jul 29, 2019 7:18 am
Forum: General
Topic: Is it that easy to reverse-engineer a love2d game?
Replies: 22
Views: 4793

Re: Is it that easy to reverse-engineer a love2d game?

So i have got the answer i expected - Don't make a commercial game in Love!! Huh, on what answers is this based? There's no reason for that, you just should not fear the virtually non existing problem of reverse engineering of your code/data first and foremost because nobody who aims to do anything...
by Nelvin
Sun Jul 28, 2019 3:16 pm
Forum: General
Topic: Is it that easy to reverse-engineer a love2d game?
Replies: 22
Views: 4793

Re: Is it that easy to reverse-engineer a love2d game?

Don't make it harder than it is ... your typical tools like 7zip (or even the builtin Windows zip support) happily finds and extracts the zip compatible part of the file - with 7zip you don't even have to change the suffix. So yeah, it's a simply container format and so it's easy to access it's cont...