One day at night, I was watching Johnathan Blow's Video, and I heard him saying, "Stop doing web programming". 😔 we all know we do web cause we kinda have to. So, I decided the next day to make a simple thing, a "Pong" game with Raylib. So I made a one-person Pong game, and then I thought, "What good is pong if you don't play it with your friends?" So I tried to make it playable by LAN, and here it is.
- go-raylib and it's prerequisites.
Make sure you are on the same LAN ( WLAN ) as your friend. and make sure you install all the dependencies by running the following command.
go mod tidy
Run the following
go run main.go --host
and then it will log your <SERVER_IP>
run the following command by replacing <SERVER_IP>
with your logged server IP. ( don't include the port )
go run main.go --join <SERVER_IP>
You will use HJKL to move your pads. If you know Vim motion, you know what I mean. but if you need further.
^
k
< h l >
j
v