An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![Kotlin on ubuntu](https://github.com/bailuk/TLG/actions/workflows/kotlin-on-ubuntu.yml/badge.svg)](https://github.com/bailuk/TLG/actions/workflows/kotlin-on-ubuntu.yml)
[![Node on ubuntu](https://github.com/bailuk/TLG/actions/workflows/node-on-ubuntu.yml/badge.svg)](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
![GTK 4 variant](screenshot.png)

# 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)