Search found 137 matches

by gcmartijn
Mon Dec 26, 2022 5:12 pm
Forum: General
Topic: info needed for image scaling, keep it sharp, photoshop nearest neighbor (hard edges)
Replies: 11
Views: 2784

Re: info needed for image scaling, keep it sharp, photoshop nearest neighbor (hard edges)

No I don't want to use vector images, there is to much detail. I use this for the canvas https://love2d.org/forums/viewtopic.php?f=3&t=92669 self.canvas = {} self.canvas.width = 320 self.canvas.height = 180 self.canvas.integerScaling = true self.canvas.subpixels = 4 Here you se a in game image: ...
by gcmartijn
Mon Dec 26, 2022 4:05 pm
Forum: General
Topic: info needed for image scaling, keep it sharp, photoshop nearest neighbor (hard edges)
Replies: 11
Views: 2784

info needed for image scaling, keep it sharp, photoshop nearest neighbor (hard edges)

H!, I want to know if there is a program or script that can convert my images (480x180) so it is scalable in the game. So the image don't get blurry, but will stay the same. What I mean by that is, that the game is now using nearest neighbor scaling (that is the name inside photoshop). So the image ...
by gcmartijn
Wed Nov 23, 2022 7:08 pm
Forum: Support and Development
Topic: attach two images together inside memory, ImageData:paste() ? no glitch when moving together
Replies: 3
Views: 1415

Re: attach two images together inside memory, ImageData:paste() ? no glitch when moving together

I'm glad that I ask it first ;) Canvas sounds better, so each 'human' is then a drawable Canvas.
Going to work/test that.
by gcmartijn
Wed Nov 23, 2022 5:57 pm
Forum: Support and Development
Topic: attach two images together inside memory, ImageData:paste() ? no glitch when moving together
Replies: 3
Views: 1415

attach two images together inside memory, ImageData:paste() ? no glitch when moving together

At the moment I have an optimised atlas file with a separated human parts, head (static) head (talking frames) body walking. I'm not going to use legs and arms, they are attached to the body in the atlas file. Inside the game I was placing the head on top of the body, and move it with the body. I ma...
by gcmartijn
Thu Nov 10, 2022 7:49 pm
Forum: Libraries and Tools
Topic: asesprite AI extension
Replies: 2
Views: 3217

Re: asesprite AI extension

nice , i'm going try this one for my adventure game :) thanks
by gcmartijn
Sun Oct 02, 2022 6:43 pm
Forum: Support and Development
Topic: [fixed] feature request: flux tweeing lib table support.
Replies: 2
Views: 1607

Re: [fixed] feature request: flux tweeing lib table support.

Not needed with the new code. This is working perfect now -- Fade the text in (2 seconds) and out (1 second) and move the text 10 pixels to the left, but first wait 3 seconds Tween.to(textObj, 2, {color = {255, 255, 255, 1.0}}):after(1, {x = textObj.x - 10, color = {255, 255, 255, 0.0}}):delay( 3 )
by gcmartijn
Sat Oct 01, 2022 12:27 pm
Forum: Support and Development
Topic: [fixed] feature request: flux tweeing lib table support.
Replies: 2
Views: 1607

[fixed] feature request: flux tweeing lib table support.

Hello, I'm use this lib https://github.com/rxi/flux inside my game already. But now I need a feature that I can't implement at the moment. The thing is that it is not working with nested tables, like color. local tweenFadeOut = {x = 0, color = {0, 0, 0, 0}} Tween.to(textObj, 3, tweenFadeOut) EDIT I ...
by gcmartijn
Sun Sep 25, 2022 4:03 pm
Forum: Ports
Topic: LÖVE for the Switch
Replies: 47
Views: 226722

Re: LÖVE for the Switch

I'm pleased to share my port to Switch via the official Nintendo SDK. It is based on the main branch. Can you give some details about the love2d 11.4 functions support, what features don't work ? At the moment I use function love.mousepressed(xOrg, yOrg, button, istouch, presses) That work for the ...
by gcmartijn
Sun Aug 21, 2022 10:48 am
Forum: Support and Development
Topic: Memory Profiling?
Replies: 30
Views: 23809

Re: Memory Profiling?

oops.....

I totally forgot the 'local' concept this morning...see my message as not sent.
I use local everywhere, except in the test script above... sorry.
This time I did check the test function with local and I can confirm that it works (like you said before).
by gcmartijn
Sun Aug 21, 2022 7:49 am
Forum: Support and Development
Topic: Memory Profiling?
Replies: 30
Views: 23809

Re: Memory Profiling?

Do we always need to set variable to nil for the garbage collector ? No. Going out of scope is equivalent to setting it to nil. Sometimes, Löve objects take a long time to be cleaned up by the GC, letting many of them to accumulate and take a lot of memory. In these cases, it's best to explicitly r...