Search found 39 matches
- Sun Jan 26, 2020 6:24 am
- Forum: Support and Development
- Topic: IntelliJ or Zerobrane?
- Replies: 8
- Views: 5829
Re: IntelliJ or Zerobrane?
I personally choose Notepad++ or Atom.
- Sun Dec 22, 2019 2:56 pm
- Forum: Support and Development
- Topic: Share a Shader!
- Replies: 328
- Views: 602869
Re: Share a Shader!
Do anyone have a simple invert colors shader?
- Sat Dec 21, 2019 7:27 am
- Forum: Support and Development
- Topic: How to use the texure's Wrap Modes?
- Replies: 5
- Views: 4312
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 ...
- Thu Dec 19, 2019 8:18 pm
- Forum: Support and Development
- Topic: How to use the texure's Wrap Modes?
- Replies: 5
- Views: 4312
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...
- Thu Dec 19, 2019 8:17 pm
- Forum: Support and Development
- Topic: How to use the texure's Wrap Modes?
- Replies: 5
- Views: 4312
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...
- Thu Dec 19, 2019 7:53 pm
- Forum: Support and Development
- Topic: How to use the texure's Wrap Modes?
- Replies: 5
- Views: 4312
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...
- 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: 3095
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...
- 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: 3095
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...
- 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: 3095
[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?
- Sun Oct 13, 2019 4:35 pm
- Forum: Games and Creations
- Topic: Floppy Box
- Replies: 5
- Views: 7015
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.