Search found 614 matches

by BrotSagtMist
Fri Apr 26, 2024 8:41 pm
Forum: General
Topic: Image format size pickle
Replies: 0
Views: 22

Image format size pickle

So i am currently working on something that needs a shitton of photos. I will also require transparency. Now the problem is if i save my files in png format the project easily hits a few gb in size. If i save in jpg it cuts the size by about 70% without quality drop, but it doesnt have transparency....
by BrotSagtMist
Tue Apr 23, 2024 1:19 pm
Forum: Support and Development
Topic: Grid based movement
Replies: 3
Views: 216

Re: Grid based movement

What do you even mean with not work?
Runs here, moves.
by BrotSagtMist
Tue Apr 16, 2024 5:56 pm
Forum: Libraries and Tools
Topic: Rasterizing polygons into images
Replies: 5
Views: 1199

Re: Rasterizing polygons into images

Cool tutorial, thanks for the effort.
by BrotSagtMist
Wed Apr 10, 2024 1:22 pm
Forum: Support and Development
Topic: Weird error for a function that is correct.
Replies: 10
Views: 1539

Re: Weird error for a function that is correct.

Just adding: Youre trying to set a bolean using if cases on a bolean. Thats just adding extra steps, if you dont have anything else that uses it just do it in one go: if (0 > platformer.a.corner_lb_x) and (0 < platformer.a.corner_rt_x) and (platformer.y > platformer.a.corner_lb_y) and (platformer.y ...
by BrotSagtMist
Wed Apr 10, 2024 12:30 am
Forum: Support and Development
Topic: Weird error for a function that is correct.
Replies: 10
Views: 1539

Re: Weird error for a function that is correct.

It means my editor flags the function as not having a matching end, it gets eaten at line 18.
"if true then" < why have you came up with this? This line effectively is not exectuted as if true cancels itself. But it eats an extra end.
by BrotSagtMist
Tue Apr 09, 2024 11:59 pm
Forum: Support and Development
Topic: Weird error for a function that is correct.
Replies: 10
Views: 1539

Re: Weird error for a function that is correct.

line 11 is not closed.
Get an editor with block checks, really handy.
Also look at line 18 where you have a mess.
by BrotSagtMist
Tue Apr 02, 2024 11:10 am
Forum: General
Topic: What exactly *is* LÖVE 2D?
Replies: 3
Views: 459

Re: What exactly *is* LÖVE 2D?

It is whatever you want it to be.
by BrotSagtMist
Thu Mar 28, 2024 3:24 am
Forum: General
Topic: How can I learn Lua and Love2D?
Replies: 4
Views: 598

Re: How can I learn Lua and Love2D?

https://www.lua.org/pil/
the free version may be 20 years old but still works.
Read the first 3 parts.

Löve hides away a lot for simplification. The main loop for example, questionable if one can learn program flow that way.
by BrotSagtMist
Sun Mar 24, 2024 9:58 pm
Forum: Games and Creations
Topic: Simple Solitaire
Replies: 4
Views: 587

Re: Simple Solitaire

You should use the Os cursor for this, the lag is annoying.
Odd style choice for the red cards, i find it unpleasent to see the card red instead the heart.
Else it plays solid.
by BrotSagtMist
Fri Mar 22, 2024 4:44 am
Forum: General
Topic: love.draw - How to run contents of a table
Replies: 2
Views: 1450

Re: love.draw - How to run contents of a table

Iterating with:
load(value)()
will work but you should really save the table contents as function instead strings.
t = {function() lg.setColor(1,0,0) end}