Tetris has established itself as a famous game since the early video games. Even though the game looks simple requires intelligence and skills to play.
The gameplay contains tiles or tetrominoes of different shapes and a game field grid. The game's objective is to position the tiles in the game field, which fills the grid. The disappearing line will grant points. Accumulated points help users to move a level up. Once the game is over, the final score will be displayed to the user. Following steps to be followed to build your own Tetris game, 1.Create Blocks for Tetris 2.Graphic designs 3.Multi-player Tetris 4.Creating customized Game field 5.2D Tetris 6.3D Tetris 7.Control keys
Create Blocks & Graphics
Listed below libraries help in creating the best graphic design for gaming applications can help the moving tiles across the game field, selecting colors for tiles, making different shapes of tiles using different sizes of arrays, and matrix rotation. In the case of a single-player game, the game gets over when all blocks are formed such that no lines are disappearing.
WiFi-Tetris-Clockby witnessmenow
A WiFi clock made of falling tetris blocks. For the ESP8266 or ESP32
WiFi-Tetris-Clockby witnessmenow
C++ 110 Version:Current License: Permissive (MIT)
rune.jsby runemadsen
A JavaScript library for programming graphic design systems with SVG
rune.jsby runemadsen
JavaScript 647 Version:1.1.8 License: Permissive (MIT)
solarus-designby solarus-games
Source files for graphic design of Solarus (logos, icons, etc.)
solarus-designby solarus-games
Python 4 Version:Current License: Others (Non-SPDX)
2D Tetris Game
2D games are titles with only two axes of motion. Typically, these are "flat" games where you can move left and right up and down. You can create a 2D Tetris game using the below libraries.
asw-tetrisby jbouny
A Scalable Web Tetris, rendered with Canvas2D & WebGL with three.js, that use HTML5 to provide a simple way to explore the possibilities of current technologies (2d, 3d, music, touch, etc.)
asw-tetrisby jbouny
JavaScript 17 Version:Current License: Permissive (MIT)
canvas-tetrisby dionyziz
A 2D tetris game in HTML5 canvas
canvas-tetrisby dionyziz
JavaScript 421 Version:Current License: Permissive (MIT)
3D Tetris Game
Players control multiple falling blocks, positioning and rotating them to clear layers in a three-dimensional environment similar to Tetris gameplay. You can create a 3D Tetris game using the below libraries.
CubicTetrisby CaviarChen
A 3D Tetris Game in Unity
CubicTetrisby CaviarChen
C# 15 Version:v1.0 License: Strong Copyleft (GPL-3.0)
Creating own Game field
The libraries listed below help to create custom matrices for the Tetris game.
RPi_8x8GridDrawby topshed
A Python Pygame application for creating 8x8 images to load onto the Astro-Pi LED matrix
RPi_8x8GridDrawby topshed
Python 48 Version:Current License: Permissive (MIT)
SigProfilerMatrixGeneratorby AlexandrovLab
SigProfilerMatrixGenerator creates mutational matrices for all types of somatic mutations. It allows downsizing the generated mutations only to parts for the genome (e.g., exome or a custom BED file). The tool seamlessly integrates with other SigProfiler tools.
SigProfilerMatrixGeneratorby AlexandrovLab
Python 77 Version:v1.2 License: Permissive (BSD-2-Clause)
blockby bamos
An intelligent block matrix library for numpy, PyTorch, and beyond.
blockby bamos
Python 256 Version:Current License: Permissive (Apache-2.0)
Matrix-Visionby StanislavPetrovV
Matrix Vision (web camera) using Pygame, Numpy
Matrix-Visionby StanislavPetrovV
Python 36 Version:Current License: Permissive (MIT)
nio-templateby anoadragon453
A template for creating matrix bots in python with matrix-nio
nio-templateby anoadragon453
Python 60 Version:Current License: Permissive (Apache-2.0)
Multi-player Tetris
Listed below libraries helps to build a multi-player Tetris game, two players will play on their game field one who gets more scores will win the battle.
cz19badgeby rushashell
Repository for collaboration on multiplayer Tetris during Campzone 2019
cz19badgeby rushashell
Python 1 Version:Current License: Permissive (MIT)
ClassicTetrisMultiplayerby juan-burtet
A Multiplayer Version of the Classic Tetris of Nintendo Entertainment System
ClassicTetrisMultiplayerby juan-burtet
Python 4 Version:Current License: Permissive (BSD-2-Clause)
Control Keys
Key mapper is an open-source that allows users to use a key or combination of keys to perform a rotation and move, which can be used for navigating. You can create your keys to play using the below libraries.
x11-key-mapperby Khouderchah-Alex
Remap device keys based on currently-focused window title
x11-key-mapperby Khouderchah-Alex
Python 1 Version:Current License: Permissive (Apache-2.0)
JoyKeyMapperby magicien
Nintendo Joy-Con/ProController Key mapper for macOS
JoyKeyMapperby magicien
Swift 46 Version:v1.2.0 License: Permissive (MIT)
key-mapperby sezanzeb
🎮 An easy to use tool to change the mapping of your input device buttons.
key-mapperby sezanzeb
Python 937 Version:1.2.1 License: Strong Copyleft (GPL-3.0)