Skip to content
lizzyhwangPublic

About

2D Pokemon-style multiplayer networked chatroom, written in Dlang and using SDL

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Huskyland!

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.

Demo

https://youtu.be/SQxlqHAjM1w?si=OnG7bwTU9z0qIYE_

Running the program

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.

Step 1: Clone the Repository

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

Step 2: Install Dependencies

This project depends on the following libraries:

  1. bindbc-sdl
  2. bindbc-loader
  3. unit-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

Step 3: Build and run using DUB

Run this command from the root directory of the project:
dub

Step 4: Running the Application

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.

Additional Notes

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.

About

2D Pokemon-style multiplayer networked chatroom, written in Dlang and using SDL

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages