A snake game for Samsung smart TVs (Tizen OS), controlled with the TV remote.
- 3 difficulty levels: Easy (for kids) / Medium / Hard (hard has obstacles)
- Settings: sound, snake color (Green/Cyan/Neon), wall mode (die on hit / wrap-around)
- Graphics: smooth body movement, glow effects, particles when eating, screen shake on game over, per-difficulty high scores
| Remote | Action |
|---|---|
| Arrow keys | Move / navigate menu |
| OK (Enter) | Select / start / play again |
| Back | Pause during play / back to menu |
| Play/Pause | Pause |
cd snake-game-tizen
python3 -m http.server 8000Open http://localhost:8000 (arrow keys + Enter).
- Open Apps on the TV.
- Press
12345on the remote. - Set Developer mode = On, enter your PC IP in the Host PC IP field.
- OK → the TV reboots.
- Download TizenBrew Installer Desktop: https://github.com/reisxd/TizenBrewInstaller/releases/latest
- Run it (Linux/macOS:
chmod +x tizenbrew-installer-*, then run from terminal). - Click Install TizenBrew.
- Tizen 7+ (2022 TVs and later): sign in with a Samsung account to create a certificate as instructed.
tizen package -t wgt -- . -- SnakeGame.wgtWithout Tizen Studio: zip -r SnakeGame.wgt . (TizenBrew signs it on install).
Open TizenBrew on the TV → Package Manager → install SnakeGame.wgt.
TV and PC must be on the same LAN. Apps installed via Developer Mode may expire after ~30 days unless signed with an official certificate. If your TV requires a Samsung-signed package, use Tizen App Installer CLI — it opens a browser to sign in with your Samsung account and signs the package for your TV's DUID.
config.xml Tizen manifest (tv profile)
index.html main page
css/style.css
js/settings.js difficulty + theme + localStorage
js/audio.js Web Audio-generated sounds
js/render.js canvas graphics
js/game.js logic + state machine + menu + input
js/main.js bootstrap
icon.png launcher icon (512x512)
assets/ fruit icons (Twemoji, CC-BY 4.0)
Fruit icons from Twemoji, licensed CC-BY 4.0.
MIT. Fruit icons (Twemoji) are CC-BY 4.0.