58 lines
2.1 KiB
Markdown
58 lines
2.1 KiB
Markdown
# Two Eleven (2048 Game)
|
|
|
|
A customizable 2048 sliding tile puzzle game for Tactility.
|
|
Named Two Eleven because numbers can be a pain in the butt with file names and 2^11=2048.
|
|
|
|
## Overview
|
|
|
|
TwoEleven is a faithful implementation of the popular 2048 game, where you slide numbered tiles to combine them and reach the 2048 tile. Unlike the standard 4x4 grid, this version allows you to choose grid sizes from 3x3 to 6x6, providing varying levels of challenge.
|
|
|
|
## Features
|
|
|
|
- **Configurable Grid Sizes**: Choose from 3x3 (easy), 4x4 (classic), 5x5 (moderate), or 6x6 (expert) grids.
|
|
- **Intuitive Controls**: Swipe gestures on touchscreens or use arrow keys for keyboard input.
|
|
- **Visual Feedback**: Color-coded tiles with smooth animations.
|
|
- **Score Tracking**: Real-time score display with win/lose detection.
|
|
- **Responsive UI**: Optimized for small screens with clean, modern design.
|
|
- **Thread-Safe**: Proper handling of UI updates to prevent crashes.
|
|
|
|
## Screenshots
|
|
|
|
Screenshots taken directly from my Lilygo T-Deck Plus.
|
|
Which is also the only device it has been tested on so far.
|
|
|
|
  
|
|
 
|
|
|
|
## Requirements
|
|
|
|
- Tactility - obviously...
|
|
- Touchscreen or keyboard input
|
|
|
|
## Usage
|
|
|
|
1. Launch the TwoEleven app.
|
|
2. Select your preferred grid size (3x3 to 6x6).
|
|
3. Swipe tiles in any direction to move and combine them.
|
|
4. Reach the 2048 tile to win, or get stuck to lose.
|
|
5. Press the refresh button to restart with the same grid size.
|
|
|
|
## Controls
|
|
|
|
- **Touchscreen**: Swipe up, down, left, or right to move tiles.
|
|
- **Keyboard**: Use arrow keys (↑, ↓, ←, →) for movement.
|
|
- **New Game**: Press the "New" button to reset the board.
|
|
|
|
## Game Rules
|
|
|
|
- Start with random tiles (2 or 4).
|
|
- Slide tiles in four directions.
|
|
- Tiles with the same number merge when they collide.
|
|
- New tiles appear after each move.
|
|
- Game ends when you reach 2048 (win) or no moves are possible (lose).
|
|
|
|
## TODO
|
|
|
|
- Maybe trackball one day?
|
|
- Maybe other keys rather being limited to arrow directions. (why so limited lvgl?)
|