Search found 20 matches
- Sat Apr 10, 2021 6:46 pm
- Forum: General
- Topic: Pipes: spritesheet, quads
- Replies: 5
- Views: 4931
Re: Pipes: spritesheet, quads
"Better" doesn't really tell us what you're trying to accomplish here. Do you mean you want to procedurally generate the pipe network, so that you'll have a different arrangement of pipes each time? That's certainly possible.
- Mon Mar 08, 2021 5:05 pm
- Forum: Support and Development
- Topic: Avoiding moving objects going into walls in bump.lua
- Replies: 21
- Views: 8748
Re: Avoiding moving objects going into walls in bump.lua
He means this, I think: https://github.com/kikito/bump.lua It sounds like objects are not being tested for collisions during sliding/recoil (or you don't have the additional collisions set up). This may be internal to the library. You could switch to the "touch" type of collision, which do...
- Sat Mar 06, 2021 10:21 pm
- Forum: Support and Development
- Topic: Getting Image Data of Image
- Replies: 4
- Views: 3610
Re: Getting Image Data of Image
Or you could cheat: draw the Image to a Canvas of the same size, and use Canvas:newImageData() to get what you want. Following the wiki's recommendation is probably more efficient, though.
- Sat Mar 06, 2021 9:22 pm
- Forum: Support and Development
- Topic: Scaling text in printf
- Replies: 6
- Views: 3656
Re: Scaling text in printf
You can calculate the x-coordinate yourself (from Text:getWidth(), msgTextSize, and ww) rather than relying on printf's AlignMode to place the text. Or possibly use a Transformation object. Or there's probably a third solution that requires understanding the fine print about how printf behaves.
- Thu Mar 04, 2021 10:28 pm
- Forum: Support and Development
- Topic: looking for a nice text border (outline/stroke) script.
- Replies: 7
- Views: 5704
Re: looking for a nice text border (outline/stroke) script.
Coloured true-type fonts were a big thing at one point during the late 90s—outlined text would be possible using that format. I've never tried using a coloured TTF in Löve, but I have no reason to believe it wouldn't work. If you do decide to go the shader route, look for "outer glow" shad...
- Thu Mar 04, 2021 7:31 pm
- Forum: Support and Development
- Topic: looking for a nice text border (outline/stroke) script.
- Replies: 7
- Views: 5704
Re: looking for a nice text border (outline/stroke) script.
I can think of three ways of doing it (using a shader inside Löve, manipulating ImageData inside Löve, editing the actual TTF outside Löve if the license permits). They're all high effort for little return. The shader is probably the most practical, but I know little about them. You could also poke ...
- Sat Feb 20, 2021 6:55 pm
- Forum: General
- Topic: Midi format music distortion
- Replies: 15
- Views: 20269
Re: Midi format music distortion
If you've got music in the game already, adding one more MIDI using the existing set of instruments should increase the size of the game less than adding one more MP3 would. The location of the break-even point where MIDI takes up less space for all the music in the game is going to depend on the fi...
- Thu Feb 18, 2021 2:59 pm
- Forum: General
- Topic: How to Form a Development Team
- Replies: 6
- Views: 6225
Re: How to Form a Development Team
A couple of other options: 1. If you're looking for artists in particular, you can check places where artists hang out (DeviantArt, pixel art related venues like Pixelation and Pixel Joint). Many of them also have forum sections dedicated to collaboration and hiring, although I admit you're likely t...
- Thu Feb 18, 2021 2:52 am
- Forum: Support and Development
- Topic: How would one check if a square is within a circle?
- Replies: 11
- Views: 7213
Re: How would one check if a square is within a circle?
I think you've got the idea: apply the Pythagorean Theorem to see if a given point is within the radius of your circle. If you want to do this for a square with a size larger than one pixel, you can do it by checking each corner of the square. Protip: You don't actually need to perform the square ro...
- Tue Feb 16, 2021 5:36 pm
- Forum: Support and Development
- Topic: How to use libcurl?
- Replies: 1
- Views: 3436
Re: How to use libcurl?
If you have Windows 10, you may already have it (apparently, it's included with revision 1804 and later). If you don't, the official download wizard for curl may help: https://curl.se/dlwiz/ You'll probably have to bundle libcurl.dll (or some file with a similar name) into your project if you want t...