Ugly Games
su M5

Una raccolta di giochi con partite online condivise con il sito: chi gioca da Cardputer Zero, Cardputer ADV, StickS3, PC o telefono entra nelle stesse stanze.

A collection of games with online play shared with the website: people on a Cardputer Zero, a Cardputer ADV, a StickS3, a PC or a phone join the same rooms.

DownloadDownloads

Caricamento dell'elenco…

Loading the list…

Sono versioni in sviluppo. Il numero di versione e il codice di controllo (sha256) sono sotto ogni file.

These are development builds. The version number and checksum (sha256) are shown under each file.

Come funziona

Prima schermata: l'elenco delle stanze pubbliche in attesa di giocatori, di tutti i giochi, aggiornato in diretta (Invio entra, M apre il menu dei giochi, R aggiorna). Opzionale: suono quando compare una stanza nuova; il controllo si può spegnere per risparmiare batteria. Le stesse stanze si vedono anche nella sezione "Stanze aperte" della home del sito.

Stanze: creandone una si sceglie pubblica (visibile a tutti nell'elenco, anche sul sito) o privata (solo con il codice di 4 lettere). Non serve registrarsi: si sceglie un soprannome (Guest-NNNN di default, modificabile in Impostazioni). L'account del sito è facoltativo e serve per la classifica degli scacchi (Elo); si collega con un codice su uglygames.online/hub/pair.

A fine partita (Tetris, Scorch, Bomberman) tutti i giocatori rispondono "Rigiocare?" entro 10 secondi; chi non risponde esce, e se resta solo l'host la stanza si chiude.

Giochi

GiocoZeroADV
Tetrissìsì (fino a 8 online)
Chesssìsì
Blackjacksìsì
Pokersìsì
Bombermansìsì
Strategosì—
Scorchsì—

Cardputer ADV (ESP32-S3, schermo 240×135)

Installazione

  1. Con PowerShell (immagine completa):
    python -m esptool --chip esp32s3 --port COMx --baud 921600 write-flash 0x0 ugly-games-adv-latest-full.bin
    (con PlatformIO: pio run -t upload dalla cartella del progetto).
  2. Con il Launcher di bmorcelli: copia ugly-games-adv-latest-full.bin sulla scheda SD e installalo dal menu del Launcher (funziona senza riscrivere il dispositivo; per tornare al Launcher usa il suo tasto di avvio o il reset).
  3. Solo l'app: …write-flash 0x10000 ugly-games-adv-latest-app.bin.

Aggiornamenti: per ora si scarica il nuovo .bin da questa pagina (un avviso di nuova versione nell'app è in programma).

CardputerZero (Linux, LVGL, schermo 320×170)

Installazione

Copia il pacchetto e installalo:

scp UglyGames-latest-arm64.deb pi@<indirizzo-del-cardputer>:/tmp/
ssh pi@<indirizzo-del-cardputer> "sudo apt install /tmp/UglyGames-latest-arm64.deb"

Il programma compare tra le app; in alternativa si installa dallo store dei pacchetti dello Zero quando sarà pubblicato.

M5 StickS3 (ESP32-S3, 2 tasti)

Trasforma lo StickS3 in un orologio da tutto il giorno con tre piccoli giochi online, condivisi con il sito, il Cardputer e il browser.

Comandi: A scorre in giù, B in su, A tenuto conferma, B tenuto torna indietro (dal menu principale torna all'orologio). Nel Tetris: A sinistra, B destra, doppio A ruota, il tasto laterale (power) fa cadere il pezzo, A+B tenuti escono.

Wi-Fi: Impostazioni › Wi-Fi › Add network: lo StickS3 crea una rete UglyGames-XXXX; collegati dal telefono e apri 192.168.4.1 per inserire nome e password (sul dispositivo non c'è una tastiera). Solo reti 2.4 GHz.

Installazione

Collega lo StickS3 in USB (modalità download: tieni premuto il tasto laterale mentre lo colleghi) e scrivi l'immagine completa all'indirizzo 0x0:

python -m esptool --chip esp32s3 --port COMx --baud 921600 write-flash 0x0 ugly-games-stick-latest-full.bin

oppure usa M5Burner. Il file ugly-games-stick-latest-app.bin è solo l'app (indirizzo 0x10000). Aggiornamenti: si scarica il nuovo .bin da questa pagina.

Limiti noti: la versione 0.2.0 non è ancora verificata su tutto l'hardware; solo reti 2.4 GHz; gli scacchi da ospite non contano per l'Elo; l'avviso di mossa funziona per le partite in differita dopo aver aperto una volta Chess online.

Limiti noti

How it works

Home screen: the list of public rooms waiting for players, across all games, live (Enter joins, M opens the games menu, R refreshes). Optional sound when a new room appears; polling can be turned off to save battery. The same rooms also show up in the "Open rooms" section of the home page.

Rooms: when you create one you choose public (listed for everyone, also on the website) or private (4-letter code only). No registration needed: pick a nickname (Guest-NNNN by default, editable in Settings). The site account is optional and only needed for the chess ranking (Elo); link it with a code at uglygames.online/hub/pair.

At game end (Tetris, Scorch, Bomberman) everyone answers "Play again?" within 10 seconds; whoever does not answer leaves, and if only the host remains the room closes.

Games

GameZeroADV
Tetrisyesyes (up to 8 online)
Chessyesyes
Blackjackyesyes
Pokeryesyes
Bombermanyesyes
Strategoyes—
Scorchyes—

Cardputer ADV (ESP32-S3, 240×135 screen)

Install

  1. Full image (PowerShell):
    python -m esptool --chip esp32s3 --port COMx --baud 921600 write-flash 0x0 ugly-games-adv-latest-full.bin
    (or pio run -t upload from the project folder).
  2. With the bmorcelli Launcher: copy ugly-games-adv-latest-full.bin to the SD card and install it from the Launcher menu (no need to reflash the device; to get back to the Launcher use its boot key or reset).
  3. App only: …write-flash 0x10000 ugly-games-adv-latest-app.bin.

Updates: for now download the new .bin from this page (an in-app new-version notice is planned).

CardputerZero (Linux, LVGL, 320×170 screen)

Install

Copy the package and install it:

scp UglyGames-latest-arm64.deb pi@<cardputer-address>:/tmp/
ssh pi@<cardputer-address> "sudo apt install /tmp/UglyGames-latest-arm64.deb"

The program shows up among the apps; it can also be installed from the Zero package store once published.

M5 StickS3 (ESP32-S3, 2 buttons)

Turns your M5StickS3 into an all-day watch with three small online games, shared with the website, the Cardputer and the browser.

Controls: A scrolls down, B up, hold A to confirm, hold B to go back (from the main menu it returns to the clock). In Tetris: A left, B right, double-A rotates, the side (power) button drops the piece, hold A+B to quit.

Wi-Fi: Settings › Wi-Fi › Add network: the StickS3 creates a network UglyGames-XXXX; join it from your phone and open 192.168.4.1 to enter the network name and password (the device has no keyboard). 2.4 GHz networks only.

Install

Connect the StickS3 over USB (download mode: hold the side button while plugging it in) and write the full image at address 0x0:

python -m esptool --chip esp32s3 --port COMx --baud 921600 write-flash 0x0 ugly-games-stick-latest-full.bin

or use M5Burner. The ugly-games-stick-latest-app.bin file is the app only (address 0x10000). Updates: download the new .bin from this page.

Known limits: version 0.2.0 has not been verified on all hardware yet; 2.4 GHz Wi-Fi only; guest chess games are unranked; the move alert works for one-move-a-day games after opening Chess online once.

Known limits