Search found 1440 matches

by pgimeno
Mon Jan 14, 2019 6:04 pm
Forum: Support and Development
Topic: 0.9.2 to 11.2 drawing quads with alpha
Replies: 5
Views: 207

Re: 0.9.2 to 11.2 drawing quads with alpha

Without a complete self-contained example that reproduces the problem, I don't think anyone will be able to help.
by pgimeno
Mon Jan 14, 2019 3:34 pm
Forum: Support and Development
Topic: How can I make a loading screen?
Replies: 11
Views: 273

Re: How can I make a loading screen?

OK, thanks for the clarification. Then it's an unavoidable initialization glitch, but the loading screen still works the way it's designed to work.
by pgimeno
Mon Jan 14, 2019 3:24 pm
Forum: Support and Development
Topic: 0.9.2 to 11.2 drawing quads with alpha
Replies: 5
Views: 207

Re: 0.9.2 to 11.2 drawing quads with alpha

I'm lost, and I can't follow your code without enough context as to letting us know what each variable is. Do you think you could post a minimal reproducing love file with an example, that renders fine in 0.9.2 but wrong in 11.0? I suspect the problem may be in alphamultiply vs premultiplied, but I ...
by pgimeno
Mon Jan 14, 2019 2:44 pm
Forum: General
Topic: Having Trouble Showing Text in Arabic
Replies: 6
Views: 186

Re: Having Trouble Showing Text in Arabic

LÖVE doesn't support RTL rendering, or Arabic character joining. It uses only FreeType, not something that is Arabic-aware like Harfbuzz.

You could try to implement a library that is able to render Arabic.
by pgimeno
Mon Jan 14, 2019 2:17 am
Forum: Support and Development
Topic: How can I make a loading screen?
Replies: 11
Views: 273

Re: How can I make a loading screen?

Sounds like that's initialization time and it's unavoidable. Does it then show the image for 3 seconds? It puzzles me that it doesn't happen to you with more LÖVE programs.
by pgimeno
Mon Jan 14, 2019 1:31 am
Forum: Support and Development
Topic: How can I make a loading screen?
Replies: 11
Views: 273

Re: How can I make a loading screen?

Well, if this doesn't work, then there's little else that can be done: window creation is delayed until the very last moment where it can be done, and right after that come the rest of unavoidable things. conf.lua: function love.conf(c) c.window = nil end main.lua: do local img = love.image.newImage...
by pgimeno
Mon Jan 14, 2019 1:15 am
Forum: Support and Development
Topic: How can I make a loading screen?
Replies: 11
Views: 273

Re: How can I make a loading screen?

Maybe a love.event.pump() is needed? Could you try this? (also, I've edited my post to expand a bit) love.graphics.clear() love.graphics.draw(love.graphics.newImage('Loading.png')) love.graphics.present() love.event.pump() love.timer.sleep(3) -- simulates 3 second load time function love.draw() love...
by pgimeno
Mon Jan 14, 2019 12:49 am
Forum: Support and Development
Topic: How can I make a loading screen?
Replies: 11
Views: 273

Re: How can I make a loading screen?

Here's a complete main.lua :) (use any random image for the loading screen) love.graphics.clear() love.graphics.draw(love.graphics.newImage('Loading.png')) love.graphics.present() love.timer.sleep(3) -- simulates 3 second load time function love.draw() love.graphics.print("Loading finished") end The...
by pgimeno
Mon Jan 14, 2019 12:28 am
Forum: Support and Development
Topic: How can I make a loading screen?
Replies: 11
Views: 273

Re: How can I make a loading screen?

If you only want a static image, you could get away with something like this: love.graphics.clear() love.graphics.draw(love.graphics.newImage('Loading.png')) love.graphics.present() Look up the respective functions to know how they're used. Ignore the note about love.run, because you don't want the ...
by pgimeno
Mon Jan 14, 2019 12:24 am
Forum: Support and Development
Topic: Runtime tileset generation possible?
Replies: 7
Views: 303

Re: Runtime tileset generation possible?

The calculations are performed by the GPU in floating point. These are subject to rounding errors. The effect tends to appear at coordinates that are near something plus 0.5, because sometimes it's rounded up and sometimes down.