Search found 25 matches

by azoyan
Sun Jan 28, 2024 12:06 am
Forum: General
Topic: LÖVE 11.5 released!
Replies: 17
Views: 155216

Re: LÖVE 11.5 released!

Will we have a chance to get audio effects on iOS such as reverb in version 12 ? If not, please explain why? I read you comment on github: In particular, OpenAL-Soft uses the LGPL license which is incompatible with iOS App Store distribution and other related parts of iOS app packaging and installat...
by azoyan
Fri Jun 04, 2021 2:05 pm
Forum: Support and Development
Topic: Create Font that fit on dimensions (...or hot to compute Font size). Best Practices
Replies: 8
Views: 10571

Re: Create Font that fit on dimensions (...or hot to compute Font size). Best Practices

Thank you very much!

Is font:getHeight() a slow operation? Is there really a need to cache its result?
by azoyan
Fri Jun 04, 2021 1:17 pm
Forum: Support and Development
Topic: Create Font that fit on dimensions (...or hot to compute Font size). Best Practices
Replies: 8
Views: 10571

Re: Create Font that fit on dimensions (...or hot to compute Font size). Best Practices

I don't think you're doing a binary search in the second phase. By the way, binary search is easy to get wrong, better stick to a well-proven algorithm. If I change the variable K to 2, then this value is also applied to the division operation, i.e. in the second phase it is divided by 2. a) You're...
by azoyan
Fri Jun 04, 2021 12:09 pm
Forum: Support and Development
Topic: Create Font that fit on dimensions (...or hot to compute Font size). Best Practices
Replies: 8
Views: 10571

Re: Create Font that fit on dimensions (...or hot to compute Font size). Best Practices

Thank you for your answer! No Correctly I understand that you said that we have no other ways, except through the re-creation of the font (love.graphcis.newFont)? You're doing one in the "fast" variant for increasing, but with base 1.5 instead of 2, and not using binary search in the decre...
by azoyan
Fri Jun 04, 2021 8:49 am
Forum: Support and Development
Topic: Create Font that fit on dimensions (...or hot to compute Font size). Best Practices
Replies: 8
Views: 10571

Create Font that fit on dimensions (...or hot to compute Font size). Best Practices

function CreateAutoSizedFont(width, height, str, fontName, baseSize, mode) mode = "fast" local k = 1.5 local font = love.graphics.newFont(fontName, baseSize) local fontCache = {} fontCache[baseSize] = font local textHeight = font:getHeight() local textWidth, wrappedtext = font:getWrap(str...
by azoyan
Thu Jun 03, 2021 12:09 pm
Forum: Libraries and Tools
Topic: GOOi, an Android-Oriented GUI Library
Replies: 134
Views: 180465

Re: GOOi, an Android-Oriented GUI Library

alberto_lara wrote: Sun May 31, 2020 9:19 pm Just to let you know GOOi won't be maintained anymore, I've started a new project as a "successor" https://github.com/tavuntu/urutora
Why?

And will the new project be focused on mobile devices?
by azoyan
Mon May 24, 2021 1:12 pm
Forum: General
Topic: How to reduce size of final build?
Replies: 6
Views: 8524

Re: How to reduce size of final build?

Does anyone know maybe it will be possible to build love2d without OpenAL and Box2d, because the game does not need sound and physics?
by azoyan
Thu Aug 01, 2019 9:17 am
Forum: Libraries and Tools
Topic: Metaballs
Replies: 4
Views: 6637

Re: Metaballs

Looks great!
by azoyan
Mon May 13, 2019 7:41 am
Forum: Libraries and Tools
Topic: Shake Detection Library
Replies: 1
Views: 11274

Re: Shake Detection Library

This can be useful to someone.
Who can resolve pull request https://github.com/love2d-community/awe ... d/pull/130 or add to avesome-love2d (or awesome -lua maybe?)
by azoyan
Mon Apr 15, 2019 6:33 pm
Forum: Libraries and Tools
Topic: Shake Detection Library
Replies: 1
Views: 11274

Shake Detection Library

It is porting of shake.js library to Lua. https://github.com/azoyan/ShakeDetectorLua The module is designed to be compatible with any Lua engine that can get delta-time between update cycles and accelerometer data. Example of usage with Love2d: main.lua function love.load() shakeDetector = require &...