Search found 702 matches
- Wed Apr 18, 2018 7:43 pm
- Forum: Support and Development
- Topic: newArrayImage
- Replies: 3
- Views: 2262
Re: newArrayImage
Interesting INFO! (It seems from the WIKI that you can use batches in a variety of different ways - using individual images or quads and a spritesheet. ) I have found (using WIKI example) that: sprites = { "sprite1.png", "sprite2.png" } image = love.graphics.newArrayImage( sprite...
- Wed Apr 18, 2018 4:32 pm
- Forum: Support and Development
- Topic: newArrayImage
- Replies: 3
- Views: 2262
newArrayImage
Just curious! What's the big deal? sprites = { "sprite1.png", "sprite2.png" } image = love.graphics.newArrayImage( sprites ) batch = love.graphics.newSpriteBatch( image ) batch:addLayer( #, x, y ) Isn't a batch just a limited canvas - the limitation is that all the sprites have t...
- Thu Apr 12, 2018 3:00 pm
- Forum: General
- Topic: LÖVE 11.0 released!
- Replies: 98
- Views: 110046
Re: LÖVE 11.0 released!
In many respects, I would expect that the color clamping would be done on Love's end.
Don't see any down side and would remove one more gotcha.
Everything would then be internally consistent.
Sorry, got this backward.
Love is clamping so the problem is with what people are providing.
Don't see any down side and would remove one more gotcha.
Everything would then be internally consistent.
Sorry, got this backward.
Love is clamping so the problem is with what people are providing.
Re: 11.0 bugs
Thanks pgimeno for the idea. This mess works! function colorMatch( c1, c2 ) return math.floor(255*c1[1]) == math.floor(255*c2[1]) and math.floor(255*c1[2]) == math.floor(255*c2[2]) and math.floor(255*c1[3]) == math.floor(255*c2[3]) end Always something unexpected. Couldn't be a simple change from 0-...
Re: 11.0 bugs
Doubt that this is a bug in Love 11 but would like an explanation as to what is going on. The attached script (used to floodfill concave polygons and polygons with holes) was converted from Love 10 (where it worked without any problems) to Love 11 by changing all colors from 0-255 to 0-1. Discovered...
Re: 11.0 bugs
Is there no direct way to get imagedata from an image in Love 11?
The only way I've found is to draw the image to a canvas and then get the imagedata from the canvas or to reload the image from a file as imagedata.
The only way I've found is to draw the image to a canvas and then get the imagedata from the canvas or to reload the image from a file as imagedata.
- Wed Apr 04, 2018 8:54 pm
- Forum: Support and Development
- Topic: Canvas & Stencil in Love 11.0
- Replies: 12
- Views: 13552
Re: Canvas & Stencil in Love 11.0
Bingo!
does work.
Just have to get the brackets in the right places.
Thanks for the help!
Code: Select all
gr.setCanvas( {canvas, stencil=true} )
Just have to get the brackets in the right places.
Thanks for the help!
- Wed Apr 04, 2018 1:55 pm
- Forum: Support and Development
- Topic: Canvas & Stencil in Love 11.0
- Replies: 12
- Views: 13552
Re: Canvas & Stencil in Love 11.0
Glad to hear you got it to work.
Used your suggestion and got the same error message for the line mentioned above.
Must be something else in the code that is causing this Love 10 script to fail in Love 11.
More head scratching required!
Used your suggestion and got the same error message for the line mentioned above.
Must be something else in the code that is causing this Love 10 script to fail in Love 11.
More head scratching required!
- Mon Apr 02, 2018 7:24 pm
- Forum: Support and Development
- Topic: Canvas & Stencil in Love 11.0
- Replies: 12
- Views: 13552
Canvas & Stencil in Love 11.0
Error message: Error physics.lua:435: Drawing to the stencil buffer with a Canvas active requires either stencil=true or a custom stencil-type Canvas to be used, in setCanvas. Code referenced: texCanvas = function( canW, canH, image, x, y, a, sx, sy, wd, ht ) local canvas = love.graphics.newCanvas( ...
- Sat Mar 31, 2018 1:43 am
- Forum: General
- Topic: Mouse versus Touch
- Replies: 4
- Views: 3051
Re: Mouse versus Touch
Agree!
I just didn't anticipate that touch moved the mouse.
Now I can anticipate.
I just didn't anticipate that touch moved the mouse.
Now I can anticipate.