Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

You could change the input code to the following:


Then you do this


the include function would look like this (thank you chat gpt!)


And no worries your code is safe, I now love2d that is why it was easy for me to extract the code. It looks very clean in my eyes. Found what I was ooking for really fast!

(1 edit)

Thanks! I'll look into that! And no worries, if I didn't want people to look at the code, I wouldn't release the .love file. I plan to release under MIT license the libraries I wrote when I feel like they are polished enough for others to use.

I would advise against consulting chatgpt, though. Most often than not, it is inaccurate, sometimes even completely incorrect.

(+1)

well ;) i do not trust GPT  I miss use it as a text to code generator. In this exempal the code looks fine to be honest.

Also I rarly search for code I could not write myself and sometimes I learn a leaner method to solve something.

Cool! I'm glad it has been helpful for you! I'm a bit old-fashioned in that regard, I feel more at home reading documentation.