38 lines
740 B
Markdown
38 lines
740 B
Markdown
# Terminal Game
|
|
|
|
A multiplayer terminal-based game built with Java, utilizing WebSockets for communication and Lanterna for the text-based user interface.
|
|
|
|
## Project Structure
|
|
|
|
* **game**: Client application (TUI).
|
|
* **server**: WebSocket server.
|
|
* **common**: Shared libraries and logic.
|
|
|
|
## Requirements
|
|
|
|
* Java 25
|
|
* Maven
|
|
|
|
## How to Run
|
|
|
|
1. Build the project:
|
|
```bash
|
|
mvn clean install
|
|
```
|
|
|
|
2. Start the server:
|
|
```bash
|
|
mvn compile exec:java -pl server -am
|
|
```
|
|
|
|
3. Start the client (in a new terminal):
|
|
```bash
|
|
mvn compile exec:java -pl game -am
|
|
```
|
|
|
|
## Controls
|
|
|
|
* **Left Click**: Interact with objects and fight.
|
|
* **WASD**: Move the character.
|
|
* **CTRL**: Hold to run (sprint).
|