Skip to content

I made this game in highschool and thought it could be a good starting place for those of you learning to make TCP servers.

Notifications You must be signed in to change notification settings

epaglier/Basic-TCP-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Robot Wars

This Program involves a server and multiple TCP clients (Up to 4 if I remember correctly)

Start the server by navigating to the Server folder and running

javac *.java

java Server

(This server will run on localhost port 8000 you can use ngrok (An amazing tool found at ngrok.com) to make it a public server)

-You can find your private ip in settings and use that in the client java file if you are running it on another computer on the network.

Start the Client by navigating to the Client Folder and running

javac *java

java Client

Highscores do not work yet and you need two clients to submit their names before the game will start

Game controls

W move forward

A move left (In my highschool CS class we used a robot that could only turn left to learn loops shoutout to Mr. Feinburg)

D is fire bullets

About

I made this game in highschool and thought it could be a good starting place for those of you learning to make TCP servers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages