Search found 18 matches

by YounYokel
Sun Dec 22, 2019 2:56 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 320
Views: 135939

Re: Share a Shader!

Do anyone have a simple invert colors shader?
by YounYokel
Sat Dec 21, 2019 7:27 am
Forum: Support and Development
Topic: How to use the texure's Wrap Modes?
Replies: 5
Views: 1061

Re: How to use the texure's Wrap Modes?

I don't know what size your image is. If your image is bigger than 161x218, the wrap won't work. See attached example. A sprite batch can be drawn at any size, see love.draw . Anyway, you need to add the image to the sprite batch multiple times at multiple positions, not just one. The sprite batch ...
by YounYokel
Thu Dec 19, 2019 8:18 pm
Forum: Support and Development
Topic: How to use the texure's Wrap Modes?
Replies: 5
Views: 1061

Re: How to use the texure's Wrap Modes?

Is there any functions that changes the size of a sprite batch or something like that? I can't figure it out...
by YounYokel
Thu Dec 19, 2019 8:17 pm
Forum: Support and Development
Topic: How to use the texure's Wrap Modes?
Replies: 5
Views: 1061

Re: How to use the texure's Wrap Modes?

Wrapping only works for full-size images, not for quads from an image atlas. You need to create a quad bigger than the image, and it will repeat. If that's not suitable to your purpose, you can still use a spritebatch, or draw all images in a row to rely on autobatching (if you're using Löve 11.0 o...
by YounYokel
Thu Dec 19, 2019 7:53 pm
Forum: Support and Development
Topic: How to use the texure's Wrap Modes?
Replies: 5
Views: 1061

How to use the texure's Wrap Modes?

Hello. I'm trying to figure out how to use wrap modes to draw repeating sprite. How do I draw repeatable image? In my case I use tileset image with window and it starts from [0; 57] to [161; 218]. I used the setWrap function and set it to repeat but I don't have an idea how to make it work using lov...
by YounYokel
Sat Oct 19, 2019 4:57 pm
Forum: Support and Development
Topic: [SOLVED] Is there a way to get the string width and height?
Replies: 4
Views: 756

Re: Is there a way to get the string width and height?

You don't need to create a new font, you can get the default font by just calling love.graphics.getFont . My point was that that's still a font, because strings are abstract in the sense that without a font, they don't have width or height, just count (codepoint count if we're talking utf-8 or simi...
by YounYokel
Sat Oct 19, 2019 1:44 pm
Forum: Support and Development
Topic: [SOLVED] Is there a way to get the string width and height?
Replies: 4
Views: 756

Re: Is there a way to get the string width and height?

Font:getWidth gets the width of a given text string in a specific font; Font:getHeight gives you the height of one line in that specific font. Not sure what else you might mean, unless you're asking for the number of characters (or codepoints) in a string, because that doesn't really have a width n...
by YounYokel
Sat Oct 19, 2019 10:23 am
Forum: Support and Development
Topic: [SOLVED] Is there a way to get the string width and height?
Replies: 4
Views: 756

[SOLVED] Is there a way to get the string width and height?

Hey is there a way I can get the string width or height instead of font width and height only?
by YounYokel
Sun Oct 13, 2019 4:35 pm
Forum: Games and Creations
Topic: Floppy Box
Replies: 3
Views: 2019

Re: Floppy Box

This game is unfair because the wall spawns at random point so it's possible that you may not fall and collide it if the wall is lower than the player.
by YounYokel
Thu Oct 10, 2019 4:36 pm
Forum: Support and Development
Topic: [SOLVED] How do I import files from specific folder in the game directory?
Replies: 5
Views: 1369

Re: How do I import files from specific folder in the game directory?

pgimeno wrote:
Wed Oct 09, 2019 6:23 pm
Use / instead of \
Oops. That was silly :P