VerTris - Tetris VS
VerTris: A 2-Player HTML5 Tetris Game
VerTris is a modern, 2-player Tetris game built with HTML5, CSS, and JavaScript. It offers a local multiplayer experience on a single screen, complete with PS4 controller support and competitive mechanics.
Key Features
- Local Multiplayer: Two players can compete against each other on the same screen, each with their own game board.
- PS4 Controller Support: The game seamlessly integrates with PS4 controllers, providing an intuitive and console-like gaming experience.
- Keyboard Controls: For those who prefer a classic setup, the game also supports keyboard controls for both players.
- Garbage Line Mechanic: Clearing multiple lines sends "garbage" lines to the opponent's board, adding a strategic layer to the gameplay.
- Hold Piece: Players can "hold" a Tetrimino to save it for later use, allowing for more strategic piece placement.
- Ghost Piece: A "ghost" of the current piece is displayed at the bottom of the board, showing where it will land. This helps players plan their moves more accurately.
- AI Opponent: If Player 2 is idle for a certain period, a simple AI takes over, ensuring the game can still be played.
- Modern Aesthetics: The game features a clean, dark theme with neon green accents, providing a visually appealing experience.
How to Play
- Start the Game: Open the index.html file in a modern web browser.
- Controls:
- Player 1 (Keyboard):
- Move: A / D
- Soft Drop: S
- Hard Drop: Space
- Rotate: Q / E
- Hold: R
- Player 2 (Keyboard):
- Move: Left / Right Arrow Keys
- Soft Drop: Down Arrow Key
- Hard Drop: Up Arrow Key
- Rotate: , / .
- Hold: /
- Gamepad (PS4 Controller):
- Move: D-Pad
- Hard Drop: X Button
- Rotate: L1 / R1 Triggers
- Hold: Circle Button
- Player 1 (Keyboard):
- Gameplay:
- Clear lines to score points.
- Clearing 2 or more lines at once will send garbage lines to your opponent.
- The game ends when a player's pieces stack up to the top of the board.
Technical Details
Frontend: The game is built entirely with HTML, CSS, and vanilla JavaScript.
Gamepad API: The Gamepad API is used to detect and handle input from connected controllers.
Canvas: The game boards are rendered on HTML <canvas> elements.
No Dependencies: The project has no external libraries or frameworks, making it lightweight and easy to run.
| Status | In development |
| Platforms | HTML5 |
| Author | Francisco Maruli Panggabean |
| Genre | Action |
| Tags | 2D, gamepad, Multiplayer, Tetris |
| Average session | A few minutes |
| Languages | English |
| Inputs | Keyboard, Gamepad (any) |
| Multiplayer | Local multiplayer |
| Player count | 2 |
Leave a comment
Log in with itch.io to leave a comment.