Search found 112 matches
- Mon Aug 15, 2022 11:59 am
- Forum: Games and Creations
- Topic: Nano Ninja - LOWREZJAM
- Replies: 5
- Views: 2211
Nano Ninja - LOWREZJAM
Hello, I decided to make an entry for Lowrezjam this year. It can be played in the browser on itch.io , I'll attach the .love file here as well. For anybody having a nose though the source code, please don't judge me! I've been stuck in a bit of rut with regards to completing projects so I was hopin...
- Wed Aug 03, 2022 11:17 am
- Forum: General
- Topic: Gradient ... effect ... shader?
- Replies: 10
- Views: 3958
Re: Gradient ... effect ... shader?
Your example actually might work and look better with something called an emission map. This video shows an example of how to do this in Unity, but the principle is the same in Love. You might then be able to use a gaussian blur or something similar on top of that to get the look you're after, or yo...
- Wed Aug 03, 2022 10:48 am
- Forum: General
- Topic: Gradient ... effect ... shader?
- Replies: 10
- Views: 3958
Re: Gradient ... effect ... shader?
This might give you somewhere to start. When i was testing locally img.png was a circle in that orange colour you posted. Everything else in the image was blank (i.e., rgba(0,0,0,0)). This shader will blend any colour in the image with the value in 'c1' (red in my example), based on that pixel's dis...
- Thu Jul 28, 2022 9:02 am
- Forum: Support and Development
- Topic: Pixel art smooth scrolling how?
- Replies: 12
- Views: 4684
Re: Pixel art smooth scrolling how?
Seems I may have been wrong, Box2D doesn't implement a fixed timestep update internally. In case anyone is interested, I did find another interesting site which shows an example implementation of a fixed update with interpolation to handle the remaining time in the accumulator. In my head the interp...
- Wed Jul 27, 2022 1:36 pm
- Forum: Support and Development
- Topic: Pixel art smooth scrolling how?
- Replies: 12
- Views: 4684
Re: Pixel art smooth scrolling how?
Given you're using the built in physics, which I suspect uses a fixed timestep update internally (someone correct me if I'm wrong), I think your problem was due to fractional timestep building up in the accumulator after each frame. I had this problem myself which I solved by consuming the full delt...
- Tue Jul 26, 2022 1:10 pm
- Forum: Support and Development
- Topic: [SOLVED] love.graphics.stencil problem
- Replies: 4
- Views: 2391
Re: love.graphics.stencil problem
Ah I see what you mean. It seems you were just missing a boolean parameter to love.graphics.stencil. By default it clears the current stencil buffer. This new example does the same thing but using two draws to the stencil. The only difference is the boolean true on the second call. local mx = love.g...
- Tue Jul 26, 2022 11:18 am
- Forum: Support and Development
- Topic: [SOLVED] love.graphics.stencil problem
- Replies: 4
- Views: 2391
Re: love.graphics.stencil problem
Must admit I've not used stencils before, and I'm not really sure why yours doesn't work without messing about some more, but the below does render a circle with a "hole" in the centre using a stencil. Hope it puts you on the right track. local mx = love.graphics.getWidth() / 2 local my = ...
- Fri Jul 22, 2022 12:41 pm
- Forum: Games and Creations
- Topic: Aarstider [Released]
- Replies: 30
- Views: 45110
Re: Aarstider [Released]
Very nice. Love the art, the flat coloured player sprite somehow fits in perfectly with the more detailed background art. I actually didn't realise it was supposed to help me relax before bed so I might give it another run through tonight
- Fri Jul 22, 2022 7:52 am
- Forum: General
- Topic: You know how you start a new project and it goes south fast?
- Replies: 7
- Views: 3530
Re: You know how you start a new project and it goes south fast?
This is essentially what caused me to lose interest in my previous project. However, I'm also in a very nice flow with a new one at the moment
You've not given anything away there so now I'm looking forward to seeing what you publish soon!
You've not given anything away there so now I'm looking forward to seeing what you publish soon!
- Thu Jul 21, 2022 8:11 am
- Forum: Support and Development
- Topic: progressive system for platformer game not working
- Replies: 2
- Views: 2005
Re: progressive system for platformer game not working
The first thing I noticed is you have defined Player:bounds() twice, once in main.lua and once in Player.lua. I commented out the implementation in main.lua. Then inside your commented code you have this block: -- level stuff if Level < 10 and Level ~= 10 then Player.boundDirection = "up" ...