Tests of LÖVE on Linux Mobile Phone (PinePhone Pro)

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
Popolon
Prole
Posts: 25
Joined: Mon Nov 07, 2016 11:03 am
Location: France/Paris

Tests of LÖVE on Linux Mobile Phone (PinePhone Pro)

Post by Popolon »

I made a first test of LÖVE multitouch capabilities on a Pine64 PinePhone Pro, Linux Phone (here on Manjaro Phosh dev, but it should work about the same on other flavors).

All I've coded work fine (including simple shaders usage),

The simple code to see this (only little change from the wiki example).

Made a Pleroma (Fediverse publication tool, linked to Mastodon) post about this with video and .love included.
https://pleroma.popolon.org/notice/AbpaQ6r7Ru6Qw4Zkiu

Code: Select all

ox, oy = 0,0

function love.load()
    love.window.setFullscreen(true)
end

function love.draw()
    local touches = love.touch.getTouches()

    for i, id in ipairs(touches) do
        local x, y = love.touch.getPosition(id)
        love.graphics.circle("fill", x, y, 20)
        love.graphics.line(x,y, ox,oy)
        ox,oy=x,y
    end
end
Attachments
touch00.love
first quick multitouch test on Linux Phone with LÖVE
(354 Bytes) Downloaded 50 times
SugarRayLua
Citizen
Posts: 54
Joined: Sat Dec 03, 2022 7:52 pm

Re: Tests of LÖVE on Linux Mobile Phone (PinePhone Pro)

Post by SugarRayLua »

That's really impressive! I'm aware that the much of the Pine Pro's capabilities are still being perfected, so for you to get Love2D working on it along with implement working touch on the device is great! 😊

-advocate for mobile Love2D implementations
Post Reply

Who is online

Users browsing this forum: No registered users and 56 guests