You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| .. | ||
| output | 3 years ago | |
| README.md | 3 years ago | |
| README_CN.md | 3 years ago | |
| algorithm.cpp | 3 years ago | |
| client.cpp | 3 years ago | |
| common.h | 3 years ago | |
| constants.h | 3 years ago | |
| func.h | 3 years ago | |
| gtest.cpp | 3 years ago | |
| gtest.gcda | 3 years ago | |
| gtest.gcno | 3 years ago | |
| makefile | 3 years ago | |
| screenshot.jpg | 3 years ago | |
| server.cpp | 3 years ago | |
| server.h | 3 years ago | |
| test | 3 years ago | |
| test.info | 3 years ago | |
| update.md | 3 years ago | |
| userlists.log | 3 years ago | |
README.md
Terminal-Shooting-Game
Multi-player shooting game in linux terminal.
v1.0.0 is based on wierton/socket-based-naive-game.
English | Chinese
Download and Install
git clone https://github.com/hydropek/terminal-stg --depth=1
cd terminal-stg
make
Run
- run
./serverin one terminal - run
./client [server_ip]in another terminal, example:./client 172.45.33.101(if you don't give IP address, then it will connect to 127.0.0.1) - tips:
You are admin when you both run./serverand./clienton same computer
Instructions
1. enter the game
Use w s a d j k to switch selected button.
You can choose free-for-all mode or private mode. You can invite other players to your current room.
2. commands
-
Type
<TAB>to enter command mode. -
Type
help --listfor all available commands -
Type
help commandfor further information of this command -
Commands:
name meaning example quit quit the game quitulist display online players ulistinvite invite a player to your current room invite alicetell tell a player something tell bobyell tell to all player yellfuck terminate all player and server fuckadmin input admin command admin ban cindyAdmin Command:
name meaning example ban kill a player admin ban aliceenergy set player energy admin energy bob 100hp set player hp admin hp cindy 100pos set player position admin pos bob 1 1setadmin change player authority (1: admin, 0: not admin) admin setadmin cindy 1
3. quit
press Ctrl-C or input quit in command mode to quit.
4. character in battle
| character | meaning |
|---|---|
| Y | you |
| A | others |
| █ | grass |
| X | magma |
| + | magazine |
| * | blood vial |
| o | landmine |
| . | bullet |
note:
- the bullet will have the same color with you when it belongs to you, otherwise it will be white.
- you can't see other player's landmine.
5. operations in battle
- use
wsadfor moving around - fire (8 directions, and h-j-k-l is same to vim):
y k o h l n j . - use
KJHLfor fire multiple bullets. - use
zfor putting landmine - use
(space)for close attack
6. quit the battle
note that even you die, you will not be quited from the battle
but your role will be changed from player into witness. If you
want to return the last ui, you need to type q.
Recently Update
see update.md
