C++ Networked Text Dungeon Game
Team Project - (2 Person)
Project Summary
- Project Type: Team (2 Person)
- Programming IDE: Microsoft Visual Studio
- Language Used: C++
- Target Platform: PC - (Windows)
This was an open ended team project for a Networking class at NHTI. For our project, me and my teammate wanted to try and create a basic text based game using what we had learned that semester about C++ and Sockets. Other teams worked on networked programs of their choosing such as a chat room, or tic-tac-toe for example. We ended up settling on a dungeon crawler type game where you choose your class, and can run in to various types of enemies.
Development & Challenges
To reach our project deadline one of us worked on the server code, while the other was responsible for the client-side code. This helped ensure that we worked closely together on how each side of our game communicated with itself. Given that this project was fairly open ended, we also had to work together to design our game both technically and conceptually from scratch. To help us with this we created a flow chart diagram together of the game loop.
Additionally, we opted to use structs to send our data to the server and provide more information. Since we opted to send structs over the network (via C-String), we packed them on 1-byte alignment to remove any unused padding bytes.