https://github.com/bailuk/tlg
Tetris Like Game - Tetris game written in Kotlin/Typescript which supports different GUI platforms
https://github.com/bailuk/tlg
android game gtk4 kotlin tetris typescript
Last synced: 6 months ago
JSON representation
Tetris Like Game - Tetris game written in Kotlin/Typescript which supports different GUI platforms
- Host: GitHub
- URL: https://github.com/bailuk/tlg
- Owner: bailuk
- License: mit
- Created: 2016-05-29T14:46:09.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-19T10:46:13.000Z (almost 2 years ago)
- Last Synced: 2025-05-13T03:47:54.618Z (about 1 year ago)
- Topics: android, game, gtk4, kotlin, tetris, typescript
- Language: Kotlin
- Homepage:
- Size: 1.62 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/bailuk/TLG/actions/workflows/kotlin-on-ubuntu.yml)
[](https://github.com/bailuk/TLG/actions/workflows/node-on-ubuntu.yml)
# About
*TLG - Tetris Like Game* - Kotlin and Typescript variants for multiple GUI-platforms.
# Screenshot

# Dependencies
- Java 11
- GTK 4
- Android SDK
- Node.js and npm
# Build and run
```bash
# Build all Kotlin variants
./gradlew build
# Build GTK 4 variant
./gradlew tlg_gtk:build
./gradlew tlg_gtk:run
# Build Swing variant
./gradlew tlg_swing:build
./gradlew tlg_swing:run
# Build Android variant
./gradlew tlg_android:build
# Browser: install, build and run
cd js/browser
npm install
npm run build
npm run serve
# GTK (node-gtk): install, build and run
cd js/gtk
npm install
npm run build
npm run start
```
# Install distribution (Kotlin / GTK-4 variant)
- Install dependencies: `sudo apt install openjdk-11-jre libgtk-4-1`
- Download `tlg-gtk.zip` from [release](https://github.com/bailuk/TLG/releases) or [build pipeline](https://github.com/bailuk/TLG/actions)
- Extract archive: `unzip tlg-gtk.zip`
- Run install script as user: `sh install.sh`
# License
Source code is released under the [MIT License](https://en.wikipedia.org/wiki/MIT_License)