Search found 1634 matches

by pgimeno
Sat May 04, 2019 3:07 pm
Forum: Support and Development
Topic: Android Resolution Problem [SOLVED]
Replies: 7
Views: 430

Re: Android Resolution Problem

It doesn't cover all functions, e.g. canvas creation, and if you use vertex shaders, it may not work properly, but for a simple game it works. Edit: The "correct" way is to use the coordinates unmodified, and use love.window.toPixels/fromPixels if you really need to convert to/from real pixels. You ...
by pgimeno
Sat May 04, 2019 2:34 pm
Forum: Support and Development
Topic: Android Resolution Problem [SOLVED]
Replies: 7
Views: 430

Re: Android Resolution Problem

Note that it's not a problem of resolution. The resolution is the same. It's just that the coordinates don't match pixels. A quick and dirty workaround is to use this at the beginning of love.draw: love.graphics.scale(1/love.window.getDPIScale()) and use love.graphics.getPixelWidth etc instead of lo...
by pgimeno
Sat May 04, 2019 1:55 pm
Forum: Libraries and Tools
Topic: Slab - An Immediate Mode GUI Library In Lua
Replies: 24
Views: 10066

Re: Slab - An Immediate Mode GUI Library In Lua

Nice progress, it looks great so far! I've found a few problems with the demo. The text wrapping width doesn't seem to be correctly calculated. wrap-width Pressing Ñ or any other UTF-8 > U+007F on the edit window causes this: Error: /Internal/UI/Input.lua:121: UTF-8 decoding error: Not enough space ...
by pgimeno
Fri May 03, 2019 12:07 am
Forum: Support and Development
Topic: Clicky noises when queueable source is updated [CLOSED]
Replies: 9
Views: 612

Re: Clicky noises when queueable source is updated

Ah, no wonder I couldn't reproduce.
by pgimeno
Thu May 02, 2019 8:28 pm
Forum: Support and Development
Topic: Rotating in love.graphics.rectangle [SOLVED]
Replies: 2
Views: 259

Re: Rotating in love.graphics.rectangle

Alternatively, you can create a 1x1 image and scale it to the rectangle size.

Code: Select all

local rotation = math.rad(30)
local rect1x1 = love.graphics.newImage(love.image.newImageData(1, 1, "rgba8", "\255\255\255\255"))
function love.draw()
  love.graphics.draw(rect1x1, 400, 300, rotation, 150, 100)
end
by pgimeno
Thu May 02, 2019 1:50 pm
Forum: General
Topic: Free Music / SFX Resource - Over 1800 Tracks
Replies: 284
Views: 122598

Re: Free Music / SFX Resource - Over 1800 Tracks

It's spam, after all. Tolerated here, but spam nevertheless. Unfortunately, one of the many shortcomings of phpBB is that it does not allow muting threads, and muting the user does not prevent the thread from popping up as unread.
by pgimeno
Tue Apr 30, 2019 10:41 pm
Forum: Support and Development
Topic: Love2d touch functions?
Replies: 3
Views: 319

Re: Love2d touch functions?

If you do not need handling simultaneous touches, you don't need to use touch; you can just use the mouse functions. If you need to handle simultaneous touches, the only significant difference between the mouse functions and the touch functions is that each touch (each finger in contact with the scr...
by pgimeno
Tue Apr 30, 2019 10:23 pm
Forum: Support and Development
Topic: placing anim8 parameters inside a table
Replies: 4
Views: 323

Re: placing anim8 parameters inside a table

Also, remove 'local'.
by pgimeno
Tue Apr 30, 2019 12:42 am
Forum: Support and Development
Topic: Is it possible to load a game at certain points
Replies: 10
Views: 919

Re: Is it possible to load a game at certain points

OK, sorry, I misunderstood. I can't give you advice on how to implement what you want, because there's no general way; it depends on how the code is written. In this case, I've taken a cursory look and found the program and data flow confusing. I would need to dedicate a few hours to study it, and t...