Search found 161 matches

by Bobble68
Fri Apr 28, 2023 2:28 pm
Forum: Support and Development
Topic: What's up with gamepad axes?
Replies: 13
Views: 2391

Re: What's up with gamepad axes?

On PC this settings should be added via OS and likely no one ever does them so its up to you to support all the 40000 possible gamepads that all have their own calibration. Just saying, dont bother, you simly cannot expect a gamepad to be remotely accurate. How hard could it be? I reckon I could au...
by Bobble68
Fri Apr 28, 2023 1:46 pm
Forum: Support and Development
Topic: What's up with gamepad axes?
Replies: 13
Views: 2391

What's up with gamepad axes?

Hi there, I am once again meandering into the love forums with a question. So I decided it would be neat to look into controller support for my game, so I made a quick test project to try out joysticks, however I got some weird results. The project is pretty simple - draw a circle based on the axis ...
by Bobble68
Wed Apr 12, 2023 10:39 am
Forum: Support and Development
Topic: Fast way to blur image
Replies: 6
Views: 2372

Re: Fast way to blur image

Ah I had kinda forgotten about this post I've been a bit busy with an assignment 😅 (man I hate C++), thank you all for the helpful advice! I'll probably look back at it when I've got time, sorry for not replying at all.
by Bobble68
Thu Apr 06, 2023 9:17 am
Forum: Support and Development
Topic: Fast way to blur image
Replies: 6
Views: 2372

Fast way to blur image

Hi all! I recently implemented a bloom effect into my game, which for the most part works pretty well. The way it works is by making a canvas, drawing the glow layer of sprites onto it and then subtracting away parts that should be blocked by things in front of it, before finally gaussian blurring t...
by Bobble68
Fri Feb 17, 2023 6:36 pm
Forum: Support and Development
Topic: How to use a transparent image/canvas as a stencil
Replies: 8
Views: 1732

Re: How to use a transparent image/canvas as a stencil

Bigfoot71 wrote: Fri Feb 17, 2023 6:27 pm but why not rather use meshes and a shader to pixelate the rendering?
Mainly because I don't know how to use shaders, and I'm too scared to try learning them :?

(Don't worry I am fully aware it's probably easier than I think it is)
by Bobble68
Fri Feb 17, 2023 6:09 pm
Forum: Support and Development
Topic: How to use a transparent image/canvas as a stencil
Replies: 8
Views: 1732

Re: How to use a transparent image/canvas as a stencil

Like this, if that's what you want: function love.load() canvas = love.graphics.newCanvas() -- Create a screen-sized canvas -- Draw an opaque shape on the canvas love.graphics.setCanvas(canvas) love.graphics.setColor(1, 1, 1) love.graphics.rectangle("fill", 200, 200, 400, 200) love.graphi...
by Bobble68
Fri Feb 17, 2023 5:11 pm
Forum: Support and Development
Topic: How to use a transparent image/canvas as a stencil
Replies: 8
Views: 1732

Re: How to use a transparent image/canvas as a stencil

darkfrei wrote: Fri Feb 17, 2023 2:12 pm One example
https://github.com/darkfrei/love2d-lua- ... in/stencil
How does this work exactly? I haven't yet dipped my toes into shaders yet, is that the only way of doing it?
by Bobble68
Fri Feb 17, 2023 1:13 pm
Forum: Support and Development
Topic: How to use a transparent image/canvas as a stencil
Replies: 8
Views: 1732

How to use a transparent image/canvas as a stencil

I am once again humbly throwing myself before the almighty forum of LÖVE for help. I'm trying to draw a canvas with transparency that I can use as a stencil elsewhere in the program, however I've found that the stencil just uses the whole canvas as a rectangular stencil, rather than just the parts w...
by Bobble68
Tue Jan 31, 2023 10:03 pm
Forum: Support and Development
Topic: Rotate image on a quad
Replies: 17
Views: 6228

Re: Rotate image on a quad

Is it like this? - The user can manipulate a polygon by dragging its corners / adding new corners. - While dragging, the texture inside the polygon must repeat. - Once you "freeze" the polygon as finished, the texture should stay "locked" to it, rotating & scaling with it. A...
by Bobble68
Mon Jan 30, 2023 2:35 pm
Forum: Support and Development
Topic: Rotate image on a quad
Replies: 17
Views: 6228

Re: Rotate image on a quad

Edit: Upon looking more into meshes, I'm less certain how I can use this to fix my issue if I make a mesh that matches the level polygon, wouldn't that make it difficult to set the UVs correctly? So, function love.load() local image = love.graphics.newImage('img-16.png') image:setWrap( "repeat...