2D Pokemon-style multiplayer networked chatroom, written in Dlang and using SDL. Users navigate around the room, and all current clients are shown to each other real-time. Chats and emoji statuses are also broadcast across the server. Powered by a client/server/model pipeline that spins up the TCP network on a local IP address, manages the authoritative game state, properly receives and transmits packets between players, and updates the game model accordingly.
https://youtu.be/SQxlqHAjM1w?si=OnG7bwTU9z0qIYE_
Please follow the steps below to build and run the HuskyLand software on your system. Ensure that you have** DUB — the D package manager** — and a D compiler like DMD or LDC installed on your system before proceeding.
Clone the repository using your preferred method:
SSH:
git clone git@github.com:Fall23FSE/finalproject-huskyland.git
HTTPS:
git clone https://github.com/Fall23FSE/finalproject-huskyland.git
This project depends on the following libraries:
bindbc-sdlbindbc-loaderunit-threaded
They are listed in dub.selections.json and will be automatically downloaded by DUB during the build process.
This project also requires SDL TTF. To install on MacOS:
brew install sdl2_tff
Run this command from the root directory of the project:
dub
After building successfully, the terminal will prompt you with some questions before running the application. It will ask you if you're the host (y/n), and if you are, you will enter a nickname and a port number. The program will tell you what your host address is. If you're not the host, then be sure to acquire the host address and port from the host, and type each in when prompted.
Gameplay Hotkeys:
t Enter type mode
e Enter emoji mode
w, UP Move up
a, LEFT Move up
s, DOWN Move up
d, RIGHT Move up
ESC Exit type mode or emoji mode
q Quit the application
SDL2 libraries must be installed on your system as these are required dependencies for bindbc-sdl. Visit https://wiki.libsdl.org/Installation for instructions specific to your operating system. Ensure that you also have the SDL2_ttf library installed on your system. Visit https://www.libsdl.org/projects/SDL_ttf/ for more information. Make sure your system paths are set correctly for the D compiler and DUB.