Search found 384 matches

by Santos
Thu Aug 17, 2017 8:46 am
Forum: Support and Development
Topic: API questions
Replies: 14
Views: 8034

Re: API questions

Cool, thanks again slime! :) Question number 4: Can a SoundData object be compressed and decompressed and remade? Based on how it works with ImageData I imagined love.sound.newSoundData might undocumentedly work like this: function love.load() sounddata = love.sound.newSoundData('sound.wav') sampleC...
by Santos
Wed Aug 16, 2017 11:24 am
Forum: Support and Development
Topic: API questions
Replies: 14
Views: 8034

Re: API questions

Thank you zorg, however the wiki is incomplete! function love.load() filedata = love.filesystem.newFileData('image.png') image = love.graphics.newImage(filedata) end function love.draw() love.graphics.draw(image) end I had an idea related to this in a thread entitled Wiki proposal: merge constructor...
by Santos
Wed Aug 16, 2017 11:01 am
Forum: General
Topic: Suggestion: Doubleclick callback
Replies: 3
Views: 4377

Re: Suggestion: Doubleclick callback

Hello! :) In the next version of LÖVE love.mousepressed and love.mousereleased have a click count argument, which I believe is the number of clicks in quick succession based on the system's double-click speed setting. function love.mousepressed(x, y, button, isTouch, clickCount) if clickCount == 2 t...
by Santos
Wed Aug 16, 2017 9:18 am
Forum: Support and Development
Topic: API questions
Replies: 14
Views: 8034

Re: API questions

(Excuse the double post!) Question number 3: How can an ImageData be compressed and decompressed and remade into an Image? I naively tried this: imagedatacompress.love function love.load() imagedata = love.image.newImageData('image.png') compressed = love.math.compress(imagedata) decompressed = love...
by Santos
Tue Aug 15, 2017 4:21 pm
Forum: Support and Development
Topic: API questions
Replies: 14
Views: 8034

Re: API questions

Slime, thank you so much, that all makes perfect sense. a = love.math.compress('test', 'gzip') print(a:type()) print(a:getFormat()) b = love.math.decompress(a) print(b) c = love.math.decompress(a:getString(), 'gzip') print(c) Output: CompressedData gzip test test (And I learned about StringMap::find...
by Santos
Tue Aug 15, 2017 2:27 pm
Forum: Support and Development
Topic: API questions
Replies: 14
Views: 8034

API questions

Sometimes I get confused by things in the API, so here's a thread with questions in it. I'm a bit slow so please forgive the dumb questions. Question number 1: To the best of my understanding, the second argument of love.math.compress/decompress is the compression format, however when I pass differe...
by Santos
Tue Aug 08, 2017 5:33 am
Forum: Support and Development
Topic: "wait" and "waitarrow" cursors look the same
Replies: 2
Views: 1847

Re: "wait" and "waitarrow" cursors look the same

I see, thanks. I wonder why it doesn't use IDC_APPSTARTING?
by Santos
Mon Aug 07, 2017 12:30 pm
Forum: Support and Development
Topic: "wait" and "waitarrow" cursors look the same
Replies: 2
Views: 1847

"wait" and "waitarrow" cursors look the same

The "wait" cursor looks like this to me: https://i-msdn.sec.s-msft.com/dynimg/IC119460.png I would expect the "waitarrow" cursor to look like this based on its name: https://i-msdn.sec.s-msft.com/dynimg/IC725687.png But it looks the same as the "wait" cursor, and I'm wo...
by Santos
Sun Aug 06, 2017 4:53 pm
Forum: Support and Development
Topic: Exchanging one color for a different one
Replies: 5
Views: 3726

Re: Exchanging one color for a different one

Hello! :) Here's one idea: try making two images for each image. One image has the parts that will be one color and the other image has the parts that will be the other color. color1 = {252, 217, 63} love.graphics.setColor(color1) love.graphics.draw(image1, x, y) color2 = {2, 35, 132} love.graphics....
by Santos
Sun Aug 06, 2017 3:10 pm
Forum: General
Topic: Trying the new stuff in 0.11.0
Replies: 40
Views: 29664

Re: Trying the new stuff in 0.11.0

New ParticleSystem stuff! (I'm no expert, so please correct me if I say something wrong!) There is AreaSpreadAngle , which rotates the emission area rectangle/ellipse. There are two new AreaSpread distributions, 'borderrectangle' and 'borderellipse' , which emit particles from the border of the rect...