nevermind

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
knorke
Party member
Posts: 238
Joined: Wed Jul 14, 2010 7:06 pm
Contact:

Re: nevermind

Post by knorke »

Yea, do not feel bad please.
Even if the code or documentation has some problems, even just the attempt at documentation and reuseable code it is a very valuable learning experience. Some people never learn it at all.

Two other small things:
1) https://love2d.org/wiki/love.math.colorFromBytes is maybe a function you were looking for.
Note how it accepts colors passed as seperate variables but also works with a table.

2) instead of declaring an empty table and then adding entries, you can do it in one step like this:
local a = {r=100,b=200,g=50}

Anyway, organizing code and collecting often-used functions is generally a good idea. But on the other hand there is the saying: "Do not write engines, do not write libraries - write games."
There is some truth in that, especially when starting out.
User avatar
GVovkiv
Party member
Posts: 668
Joined: Fri Jan 15, 2021 7:29 am

Re: nevermind

Post by GVovkiv »

Yep, as others already pointed out, don't give up and continue to work with taken into account criticism
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 13 guests