Search found 51 matches

by gcmartijn
Fri Apr 30, 2021 6:32 pm
Forum: General
Topic: What is your development cycle and how to avoid 'defeat'
Replies: 9
Views: 1717

Re: What is your development cycle and how to avoid 'defeat'

Fun fact, at this time I was thinking. It is Friday I have time to code now. But first check love2d.org , check internet, watch a documentary. Ow now I don't want to code anymore, its to late now... I did check the first repo commit date in my project and that is 2019-12-30 (a lot of code). So I gue...
by gcmartijn
Wed Apr 14, 2021 4:39 pm
Forum: Support and Development
Topic: Missing a function in love to check object:isReleased() or something like that
Replies: 4
Views: 1213

Re: Missing a function in love to check object:isReleased() or something like that

Found the problem, I did forget the nil in a function --- self.canvas:release() self.canvas = nil --- I keep using the release() function to nicely cleanup items that I don't use anymore. At the moment I have something like this: [scene 1] -> many resources -> player walks to [scene 2] -> release sc...
by gcmartijn
Wed Apr 14, 2021 9:03 am
Forum: Support and Development
Topic: Missing a function in love to check object:isReleased() or something like that
Replies: 4
Views: 1213

Missing a function in love to check object:isReleased() or something like that

Hi, I'm creating and remove various objects on the fly and sometimes i'm in a situation that a draw loop is using an object that don't exist anymore. I can fix this by refactoring some code, but maybe I can check if a object has been released (but don't know how). Basic example code: local function ...
by gcmartijn
Wed Mar 10, 2021 1:11 pm
Forum: Support and Development
Topic: looking for a nice text border (outline/stroke) script.
Replies: 7
Views: 1611

Re: looking for a nice text border (outline/stroke) script.

Good to know about a NewText object for the future. owww, wait haha now 'I can connect the dots' I feel stupid haha. I can create now free correct fmt fonts using the link above. And the output using both functions are for now oke. So again this forum and great community solved this case. I'm happy ...
by gcmartijn
Tue Mar 09, 2021 4:36 pm
Forum: Support and Development
Topic: looking for a nice text border (outline/stroke) script.
Replies: 7
Views: 1611

Re: looking for a nice text border (outline/stroke) script.

Hi Milon, Something like that was I using (the the first post) but yours is better because its is the correct way (I did miss some x/y points). Yesterday I was testing a font to bmfont program (https://github.com/vladimirgamalyan/fontbm) and was working/looking oke (but without border yet). I guess ...
by gcmartijn
Thu Mar 04, 2021 8:13 pm
Forum: Support and Development
Topic: looking for a nice text border (outline/stroke) script.
Replies: 7
Views: 1611

Re: looking for a nice text border (outline/stroke) script.

Thanks for the info. At the moment the text is white on top of the game, and using a black border it looks much better, and more easy to read. But you say some things I can use, especially the thing about "a font that comes with a built-in outline". Than I still can use ttf and see how it ...
by gcmartijn
Thu Mar 04, 2021 5:26 pm
Forum: Support and Development
Topic: looking for a nice text border (outline/stroke) script.
Replies: 7
Views: 1611

looking for a nice text border (outline/stroke) script.

I'm using ttf fonts and that is looking good now. Inside the 'game' there are various text sizes and maybe multiple fonts. At this point i'm happy with ttf. But now I had to add a black solid border around it and 1px is looking oke, but for example a 5 px border is not correct (beautiful). Before i'...
by gcmartijn
Thu Feb 25, 2021 5:42 pm
Forum: Support and Development
Topic: multiple canvases alpha, not working ?
Replies: 6
Views: 1480

Re: multiple canvases alpha, not working ?

Oke thanks for the info, I have to say that at this point I din't have any knowledge about blending modes at all ;) but now I can implement this structure in some classes. Thanks.
by gcmartijn
Thu Feb 25, 2021 12:52 pm
Forum: Support and Development
Topic: multiple canvases alpha, not working ?
Replies: 6
Views: 1480

Re: multiple canvases alpha, not working ?

And can i do this, because this is working, or is it better to leave the setBlendMode inside the function? local function drawCanvas1() love.graphics.clear() --love.graphics.setBlendMode("alpha", "alphamultiply") love.graphics.setColor(1, 0, 0) love.graphics.rectangle("fill&...