Lua App

Il motore delle app Lua dello Store: Lua 5.4 con disegno, testo antialiasing, touch, tasti, joypad, timer, salvataggi, HTTP, WebSocket, MQTT e Home Assistant, più uno strato compatibile con LÖVE. Da solo esegue gli script che copi in /sdcard/home/lua.

versione 1.2.0 · Licenza: MIT (engine, Lua, json.lua), SIL OFL 1.1 (Montserrat font) · Sito del progetto

Lua App

Cos'è

Il motore delle app Lua dello Store: Lua 5.4 con disegno, testo nitido in più dimensioni, touch e multitouch, tastiera e joypad, timer, salvataggi, HTTP, WebSocket, MQTT e Home Assistant. Ogni app Lua dello Store (Sudoku, RPN Calc, Aria, MQTT Explorer, RetroLove...) ha la sua icona e usa questo motore, che si installa da solo quando serve.

Le tue app Lua

Aperto dalla sua icona, Lua App elenca gli script che copi nella scheda SD:

Tocca un'app per avviarla; il gesto Indietro torna all'elenco. Gli script girano con i permessi di Lua App (schermo, file, rete); per MQTT e Home Assistant serve un pacchetto vero dello Store.

Per chi programma

Un'app completa:

function nv.draw()
  ui.clear()
  ui.label(ui.W / 2, 200, "Ciao!", ui.font.huge, ui.theme.accent, "center")
  if ui.button(412, 360, 200, 70, "Suona") then nv.beep() end
end

Il riferimento completo dell'API, gli esempi e come pubblicare nello Store sono in docs/LUA_APPS.md nel repository. Anche molti giochi scritti per LÖVE (love2d.org) girano senza modifiche.

Crediti e licenza

Lua 5.4 (Lua.org, PUC-Rio, MIT), json.lua (rxi, MIT), font Montserrat (SIL OFL 1.1). Motore NucleoOS.

Lua App

The engine of the Store's Lua apps: Lua 5.4 with drawing, anti-aliased text, touch, keys, gamepads, timers, storage, HTTP, WebSocket, MQTT and Home Assistant, plus a LÖVE compatibility layer. On its own it runs the scripts you copy to /sdcard/home/lua.

version 1.2.0 · License: MIT (engine, Lua, json.lua), SIL OFL 1.1 (Montserrat font) · Project site

Lua App

What it is

The engine of the Store's Lua apps: Lua 5.4 with drawing, crisp text in several sizes, touch and multitouch, keyboard and gamepads, timers, storage, HTTP, WebSocket, MQTT and Home Assistant. Every Lua app in the Store (Sudoku, RPN Calc, Aria, MQTT Explorer, RetroLove...) has its own tile and runs on this engine, which installs itself when needed.

Your own Lua apps

Opened from its tile, Lua App lists the scripts you copy to the SD card:

Tap one to run it; the Back gesture returns to the list. Scripts run with Lua App's permissions (screen, files, network); MQTT and Home Assistant need a real Store package.

For developers

A complete app:

function nv.draw()
  ui.clear()
  ui.label(ui.W / 2, 200, "Hello!", ui.font.huge, ui.theme.accent, "center")
  if ui.button(412, 360, 200, 70, "Beep") then nv.beep() end
end

The full API reference, examples and how to publish in the Store are in docs/LUA_APPS.md in the repository. Many games written for LÖVE (love2d.org) run unchanged too.

Credits and license

Lua 5.4 (Lua.org, PUC-Rio, MIT), json.lua (rxi, MIT), Montserrat font (SIL OFL 1.1). NucleoOS engine.