Skip to content

thatshawt/2D-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D-Game

Made this for a java class in college.

This is basically a chatting game. You move around and chat with other users.

Controls

You use WASD keys to move on a keyboard.

Also, if you have a ps4 controller you can use the arrow buttons to move.

Client Usage:

Here's how you pass in the ip you want to connect to and stuff:

java -Dip="123.456.789.123" -Dport="25565" -jar GameClient.jar

If you don't specify any ip or port the defaults are 127.0.0.1 for the ip and 25565 for the port.

Server Usage:

First argument is the port to listen on.

java -jar GameServer.jar 25565

For convince I made a docker container for the server at https://github.com/thatshawt/2D-Game/pkgs/container/2d-game. The server runs on port 25565, so bind that port however you want lmao.

image

About

this is the final project for a java class

Resources

Stars

Watchers

Forks

Packages