2D STG plane war game, author is @buaawyz
Learning how to make simple games from FishC's blog.
This can be use as a gym-environment for Reinforcement Learning or other experiments.
Download this repo or clone it locally.
- First run
python main.py
. This will create a socket server and wait for client - Then in another shell or scipt
from client import Client
and thenclient = Client()
to create a client to connect to the server established bymain.py
- Finally, use
client.send(commands)
to control plane, where commands can be
{
"0": "nothing",
"1": "up",
"2": "down",
"3": "left",
"4": "right",
"9": "disconnect"
}
- Enjoy!
- pygame