Inspiration

I've always wanted to learn how to use Sockets to create software that can be used by multiple people at once.

What it does

Has up to four player hunt each other down in a 25x25 top-down run-and-gun arena, where the only things visible to each player are a small radius around themselves and their bullets.

How I built it

Blood, sweat, tears, and code. A lot of java. Didn't use any external library except for the graphics library.

Challenges I ran into

Netcode is hard to do, so lag is present even after 4 hours of trying to use various solutions, including multithreading, to reduce the chug of the game.

Accomplishments that I'm proud of

I learned how to implement multithreads and how to get computers to communicate with one another.

What I learned

I learned how to use the Thread and Socket classes of Java.

What's next for HW: HALTBITLTAANIDAISWTW

Maybe I'll optimize it in my free time for fun :D

Built With

  • java
  • socket
  • stddraw
  • thread
Share this project:

Updates