Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aksh-bansal-dev/terminal-pong
Simple ping-pong game for terminal written in Golang.
https://github.com/aksh-bansal-dev/terminal-pong
Last synced: 25 days ago
JSON representation
Simple ping-pong game for terminal written in Golang.
- Host: GitHub
- URL: https://github.com/aksh-bansal-dev/terminal-pong
- Owner: Aksh-Bansal-dev
- Created: 2022-12-22T08:12:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-22T09:48:36.000Z (about 2 years ago)
- Last Synced: 2024-11-20T11:05:01.781Z (3 months ago)
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# terminal-pong
Simple ping-pong game for terminal written in Golang.
![Screenshot from 2022-12-22 13-46-21](https://user-images.githubusercontent.com/63552235/209088971-20f31219-23c2-4f46-83cd-ad64ef6d1ae1.png)
## How to play?
`a` and `f` to move player1 left and right respectively.
`h` and `l` to move player2 left and right respectively.
## Config
You can change various game setting in `config.json`
```
{
"rows": 25, // default 25
"cols": 100, // default 100
"ball-speed": 2, // default 2
"bat-speeed": 1 // default 1
"bat-length": 10 // default 8
}
```