Hacking sim game?
- Server can handle multiple clients simultaneously. - Client can see other players in the game. - Server broadcasts the game state to all clients. - Client receives the game state and renders the other players. - Server assigns a unique ID to each player. - Client receives its player ID form the server. - Server handles client disconnections.. Kinda... Server is ignoring SIGPIPE signal. - Server and client signals are non-blocking. - Moved player objects off the stack and onto the heap. |
||
|---|---|---|
| assets/shaders | ||
| libbettola | ||
| src | ||
| srv | ||
| .gitignore | ||
| CMakeLists.txt | ||
| Makefile | ||
| README.org | ||
Bettola Game
A 2D RPG game and engine created with C++, SDL3, and OpenGL.
Dependencies
The following dependencies are requird:
- A C++ compiler (e.g., clang, g++)
- CMake (3.16 or newer)
- SDL3 development libraries
- GLEW development libraries
Installation (Debian)
You can install all required dependencies with the following command:
sudo apt update
sudo apt install build-essential clang cmake libsdl3-dev libglew-dev
Build Instructions
This project uses a top-level Makefile to simplify the CMake workflow. All build artifacts will be placed in the bin/ directory.
Run the following from the root of the project directory.
-
Build the project: The executable will be located in
bin/bettola.make -
Build and run the project:
make run -
Clean the project: This removes the
bin/directory.make clean