Skip to content

About

Snake game for Samsung Tizen smart TVs, controlled with the remote.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game — Samsung Tizen TV

A snake game for Samsung smart TVs (Tizen OS), controlled with the TV remote.

Features

  • 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

Controls

Remote Action
Arrow keys Move / navigate menu
OK (Enter) Select / start / play again
Back Pause during play / back to menu
Play/Pause Pause

Try it in a browser

cd snake-game-tizen
python3 -m http.server 8000

Open http://localhost:8000 (arrow keys + Enter).

Install on a Samsung TV

1. Enable Developer Mode on the TV

  1. Open Apps on the TV.
  2. Press 12345 on the remote.
  3. Set Developer mode = On, enter your PC IP in the Host PC IP field.
  4. OK → the TV reboots.

2. Install TizenBrew (once)

  1. Download TizenBrew Installer Desktop: https://github.com/reisxd/TizenBrewInstaller/releases/latest
  2. Run it (Linux/macOS: chmod +x tizenbrew-installer-*, then run from terminal).
  3. Click Install TizenBrew.
  4. Tizen 7+ (2022 TVs and later): sign in with a Samsung account to create a certificate as instructed.

3. Package the .wgt

tizen package -t wgt -- . -- SnakeGame.wgt

Without Tizen Studio: zip -r SnakeGame.wgt . (TizenBrew signs it on install).

4. Install the game

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.

Project structure

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)

Image credits

Fruit icons from Twemoji, licensed CC-BY 4.0.

License

MIT. Fruit icons (Twemoji) are CC-BY 4.0.

About

Snake game for Samsung Tizen smart TVs, controlled with the remote.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages