Search found 383 matches

by Santos
Wed Aug 16, 2017 11:24 am
Forum: Support and Development
Topic: API questions
Replies: 14
Views: 2784

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: 1161

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: 2784

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: 2784

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: 2784

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: 738

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: 738

"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 wondering if this is how it's su...
by Santos
Sun Aug 06, 2017 4:53 pm
Forum: Support and Development
Topic: Exchanging one color for a different one
Replies: 5
Views: 1075

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: 10355

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...
by Santos
Sun Aug 06, 2017 12:24 pm
Forum: General
Topic: Question from a newbie
Replies: 6
Views: 1708

Re: Question from a newbie

Hello! :) ZeroBrane Studio can debug LOVE projects and has auto-completion for the LOVE API, and documentation if you hover the cursor over a LOVE function. You can put this line at the top of main.lua so that debugging works: if arg[#arg] == "-debug" then require("mobdebug").start() end And also se...