Search found 11 matches

by 9912
Tue Oct 08, 2024 3:06 pm
Forum: Support and Development
Topic: Problem packaging game.love in love-android
Replies: 3
Views: 9686

Re: Problem packaging game.love in love-android

But by your logic of putting main.lua in res does that mean I could put game.love there? (My game has a looot of files, plus I can't drag and drop). no, on res folder no. the assets folder contains the main.lua file. By other hand, if you have lots of files of your game (i assume images, sprites or...
by 9912
Tue Oct 08, 2024 3:01 am
Forum: Support and Development
Topic: Problem packaging game.love in love-android
Replies: 3
Views: 9686

Re: Problem packaging game.love in love-android

errm... no, not this way. instead of putting your game.love file, put its contents instead this way: love-android_assets.png valid for Love2D v11.4 onwards. Note a libwebp.so file in this example used to load WebP images, the path of this library is just lib/libwebp.so to load it. Almost forgot it, ...
by 9912
Sun Oct 06, 2024 4:10 pm
Forum: General
Topic: Adding .so files for Android
Replies: 3
Views: 9952

Re: Adding .so files for Android

Hi, you would find interesting this: https://github.com/9912/moonvox/blob/master/moonvox.lua
you can check how to load an .so library onto android using ffi, however, make sure this .so comes from an android version of the program you want to run
by 9912
Wed Jan 18, 2023 8:00 pm
Forum: Support and Development
Topic: Fill a circle with text
Replies: 13
Views: 2612

[Solved] Fill a circle with text

Thank you all for the help, now for future use is better to have this code as a library for future use
by 9912
Tue Jan 10, 2023 5:30 pm
Forum: Support and Development
Topic: Fill a circle with text
Replies: 13
Views: 2612

Re: Fill a circle with text

I suggest to post the code snippet on a gist for future references or in a library.
by 9912
Tue Jan 10, 2023 5:24 pm
Forum: Support and Development
Topic: Fill a circle with text
Replies: 13
Views: 2612

Re: Fill a circle with text

*looks the entire thread after logging in* ~Oh, what i´ve done, i've started a war lmao. looked all replies (specially pgimeno's code) and it works with some params changed -- Function by pgimeno -- local function genRoundText(text, font, radius, align, topMargin) -- Initializes an empty text object...
by 9912
Sun Jan 08, 2023 9:15 pm
Forum: Support and Development
Topic: Fill a circle with text
Replies: 13
Views: 2612

Re: Fill a circle with text

like this, the use case for this is in case of having a round display (like zeblaze thor 5 smartwatch which runs Android not Android Wear)
by 9912
Sun Jan 08, 2023 8:52 pm
Forum: Support and Development
Topic: Fill a circle with text
Replies: 13
Views: 2612

Fill a circle with text

Hi, the title explains all, anyone knows how to fill a circle with horizontal text?
No text bending, just filling a circle with circle-shaped paragraph?
by 9912
Mon May 24, 2021 7:54 pm
Forum: Support and Development
Topic: Easy swipe on touchscreen android
Replies: 4
Views: 6373

Re: Easy swipe on touchscreen android

The code from https://love2d.org/wiki/love.graphics.translate works too: tx=0 ty=0 function love.draw() mx = love.mouse.getX() my = love.mouse.getY() if love.mouse.isDown(1) then if not mouse_pressed then mouse_pressed = true dx = tx-mx dy = ty-my else tx = mx+dx ty = my+dy end elseif mouse_pressed...
by 9912
Mon May 24, 2021 6:17 am
Forum: Support and Development
Topic: Easy swipe on touchscreen android
Replies: 4
Views: 6373

Easy swipe on touchscreen android

Hello, i'm not very often here, but i want to share this code if someone wants an easy swipe up and down function function love.load() begin_y = nil end_y = nil doingTouch = false end function love.touchpressed(id, x, y, dx, dy, pressure) if doingTouch == false then begin_y = y doingTouch = true end...