Hacking sim game?
Go to file
Ritchie Cunningham e35c4b5d61 [Fix] Visible lighting seems between chunks.
Server now generates and sends an expanded 34x34 heightmap for each
chunk, which includes a 1-vertex border containing height information
from all adjacent chunks.

Client ChunkMesh class updated to consume this extra data, allowing it
to calcualte perfectly accurate normal vectors for all vertices,
including those at the very edge of a chunk.
2025-09-17 19:19:38 +01:00
assets/shaders [Add] Terrain lighting. 2025-09-16 23:58:03 +01:00
libbettola [Fix] Visible lighting seems between chunks. 2025-09-17 19:19:38 +01:00
src [Fix] Visible lighting seems between chunks. 2025-09-17 19:19:38 +01:00
srv [Fix] Visible lighting seems between chunks. 2025-09-17 19:19:38 +01:00
.gitignore [Add] Design doc to .gitignore. 2025-09-15 19:41:21 +01:00
CMakeLists.txt [Refac] Separate rendering, game and application. 2025-09-14 16:09:44 +01:00
Makefile refactor(math): Replace GLM with custom math lib. 2025-09-13 02:25:13 +01:00
README.org Initial commit of 2D RPG Engine. @dacav come help. 2025-09-11 23:07:38 +01:00

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