Search found 947 matches
- Mon Apr 23, 2018 7:34 am
- Forum: Libraries and Tools
- Topic: cindy - [0-255] color range in LÖVE 11
- Replies: 12
- Views: 16393
cindy - [0-255] color range in LÖVE 11
cindy is a small library that adds several functions to LÖVE 11 that allow you to work with a [0-255] color value range instead of the newly introduced [0.0-1.0] range in love.graphics, ImageData, ParticleSystem, SpriteBatch , and Shader . Besides adding new functions, it also provides a mechanism t...
- Sun Apr 22, 2018 1:59 pm
- Forum: Support and Development
- Topic: Misunderstanding example in docs on Mount and Fuse
- Replies: 5
- Views: 2267
Re: Misunderstanding example in docs on Mount and Fuse
I don't think that works if it's fused since the game directory would be in the .love, which is fused to the love (or lovec) executable, hence the game dir would be inside the exe itself. Ah, right. In this case you need to do it like this: love.filesystem.mount(love.filesystem.getSourceBaseDirecto...
- Sun Apr 22, 2018 1:43 pm
- Forum: Support and Development
- Topic: Misunderstanding example in docs on Mount and Fuse
- Replies: 5
- Views: 2267
Re: Misunderstanding example in docs on Mount and Fuse
AFAIK, you don't need to mount a folder that's inside the game directory.
Works fine without mounting the folder.
Code: Select all
love.filesystem.getDirectoryItems('myfolder')
- Sun Apr 22, 2018 1:41 pm
- Forum: Support and Development
- Topic: Precision issue with lg.getColor()
- Replies: 10
- Views: 5541
Re: Precision issue with lg.getColor()
I get what you're saying, but it's not an OpenGL, Texture or Shader issue. Graphics::setColor on the C++ side of things tracks the color independently from OpenGL. It does it with 32 bit precision, while Lua uses 64 bit precision. It's not a huge issue, I was just surprised by the precision loss. It...
- Sun Apr 22, 2018 12:34 pm
- Forum: Support and Development
- Topic: Precision issue with lg.getColor()
- Replies: 10
- Views: 5541
Precision issue with lg.getColor()
local inp = 1 / 42 love.graphics.setColor(inp, inp, inp) local outp = love.graphics.getColor() print(inp, outp) Output: 0.023809523809524 0.023809524253011 I'm not sure if this is considered a bug, but I would expect getColor() to return the same values that were set with setColor(). It's caused by...
- Sat Apr 21, 2018 4:32 pm
- Forum: Games and Creations
- Topic: Animal Factory
- Replies: 21
- Views: 20957
Re: Animal Factory
Thanks for your input, ivan. I made it as a simple tech demo for a rather large framework for which I don't hold the copyrights. That's why my projects are obfuscated - it's the only way I'm allowed to release anything at all. No offence, but you absolutely need a mute button. :) I agree ;) I will a...
- Fri Apr 20, 2018 5:46 am
- Forum: Support and Development
- Topic: Problem while inverting direction on collision
- Replies: 4
- Views: 2735
Re: Problem while inverting direction on collision
I think you're gonna have a hard time making Pong work with accurate physics simulation, and you would be better off making your own ball and paddle 'physics' that is better suited for this type of game.
- Fri Apr 20, 2018 5:39 am
- Forum: Support and Development
- Topic: Error while loading game
- Replies: 9
- Views: 24032
- Thu Apr 19, 2018 1:15 pm
- Forum: Games and Creations
- Topic: Animal Factory
- Replies: 21
- Views: 20957
Re: Animal Factory
Uploaded version 0.4.1 for LÖVE 11.1. The old version for 0.10.2 is still available. Although almost nothing was changed in the game code, and not much is going on overall in this simple game, it performs considerably worse with LÖVE 11.1 in Linux than with 0.10.2: stuttering and low framerate on my...
- Tue Apr 17, 2018 10:42 am
- Forum: Support and Development
- Topic: Dealing with new 0-1 color range
- Replies: 13
- Views: 11343
Re: Dealing with new 0-1 color range
Here's a quick hack that adds five functions to love that work with colors in the 0-255 range. I'm gonna use them while porting stuff from 0.10.2. love.graphics.setRawColor love.graphics.rawClear love.ImageData:getRawPixel love.ImageData:setRawPixel love.ImageData:mapRawPixel local function rgba2raw...