A terraria clone made with OpengGL and C++
I've always loved learning about how games work at their lowest level, so this project was a perfect go for me. Everything here was created from scratch with only the help of a few libraries at my side. This was not only my first real OpenGL project, but also my first C++ project. The experience was quite challenging, but the knowledge that I gained from definetly made it all worth it!
- Clone the repository
git clone --recursive https://github.com/neskech/TerrariaGL.git- Build the project either using 'Release' or 'Debug' in substitution for <BUILD_TYPE>
cd TerrariaGL
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=<BUILD_TYPE> ..
cmake --build .-
Run the executable on...
- Mac / Linux
./terraria
- Windows
terraria.exe
-
- Tiles are only rendered if they are in view of the camera. Batch rendering is utilized
- A seperate renderer for dynamic sprites that uses instancing
- Sorting of sprites by their zIndex before drawing
-
- Infinite Terrain Generation
- Day Night Cycle
- A different seed for world generation each time the game is booted up
-
-
Left ClickBreak Tile -
Right ClickPlace Tile -
A and DMove Left and Right -
WJump -
Ctrl + xFreely move the Camera -
Ctrl + gDisable gravity -
Ctrl + qSuper speed -
TabTo Enable and Disable the FPS Counter -
on mac systems, 'ctlr' is replaced with option
-



