No description
  • C 81.3%
  • C++ 18.5%
  • CMake 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-08-18 11:20:35 +02:00
.vscode fix: correct formatting in c_cpp_properties.json for consistency 2025-08-15 11:47:23 +02:00
assets feat: implement UV mapping functions for bedrock geometry 2025-08-18 11:20:17 +02:00
docs Add README 2023-04-22 19:33:55 +02:00
include deps: add stb_ds 2025-08-15 11:48:01 +02:00
resources WIP: pc port 2023-03-27 18:58:52 +02:00
source fix: update character texture file path from 'mob/char.png' to 'mob/player.png' 2025-08-18 11:20:35 +02:00
test feat: implement UV mapping functions for bedrock geometry 2025-08-18 11:20:17 +02:00
.clang-format Codebase ported from old project 2022-11-22 22:03:12 +01:00
.editorconfig Codebase ported from old project 2022-11-22 22:03:12 +01:00
.gitignore feat: add .vscode and .idea directories to .gitignore 2025-08-15 11:46:50 +02:00
CMakeLists.txt feat: add bedrock-like geometry parsing and player geometry files 2025-08-17 12:20:06 +02:00
config.json feat: add scroll input mappings to config.json 2025-08-13 13:48:11 +02:00
config_wii.json feat: update input configuration for PC and add Wii configuration file 2025-08-13 12:07:52 +02:00
controls.md Emulated button input from joysticks 2023-10-12 16:55:06 +02:00
icon.png Codebase ported from old project 2022-11-22 22:03:12 +01:00
LICENSE Initial commit 2019-02-10 12:17:52 +01:00
meta.xml feat: update coder information in meta.xml 2025-08-13 23:00:03 +02:00
README.md docs: update README for feature planning and build instructions 2025-08-16 12:11:55 +02:00

CavEX

Cave Explorer is a Wii homebrew game with the goal to recreate most of the core survival aspects up until Beta 1.7.3. Any features beyond will not cold be added.


Features

  • great performance on Wii (about 60fps)
  • 5 chunk render distance currently
  • load any beta world save
  • nearly all blocks added, except redstone related
  • many items from the original
  • correct light propagation
  • ambient occlusion on blocks

Planned features (in no particular order, not complete)

  • main menu
  • biome colors
  • generation of new chunks
  • player physics
  • inventory management
  • block placement and destruction logic
  • (random) block updates
  • item actions
  • real texture pack support
  • Beta 1.7.3 multiplayer support

Screenshot

ingame0 (from the PC version)

Build instructions

This project is multiplatform, so here you have the specific guide for each platform

Wii

For the Wii platform you need to install the devkitPro Wii/Gamecube environment. Additionally install zlib using pacman of devkitPro.

dkp-pacman -S wii-dev ppc-zlib

To build it just run the following command:

catnip -T Wii -B build_wii/

If you want a debug build, you can run the following command instead:

catnip -T Wii -B build_wii/ build debug

There should then be a .dol file in the root directory that your Wii can run. To copy the game to your apps/ folder, it needs to look like this:

cavex
├── assets
│   ├── terrain.png
│   ├── items.png
│   ├── anim.png
│   ├── default.png
│   ├── gui.png
│   └── gui2.png
├── saves
│   ├── world
│   └── ...
├── boot.dol
├── config.json
├── icon.png
└── meta.xml

Note

If you are using dolphin, you need to enable the synchronization of the SD card with a folder, and there you need to put the files on the root

GNU/Linux

The game can also run on any PC with support for OpenGL 2.0 and played with keyboard and mouse.

Building requires the following additional libraries, which you can install with your system package manager: zlib, glfw3 and glew. You can then use CMake and gcc to build. The already existing Makefile is for the Wii platform only and might be removed sometime later.

mkdir build_pc
cd build_pc
cmake .. -G Ninja
ninja

Please also copy the fragment and vertex shaders from resources/ next to your assets/ directory.

Windows (MINGW64)

pacman -S mingw-w64-x86_64-zlib mingw-w64-x86_64-glfw mingw-w64-x86_64-glew mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc mingw-w64-x86_64-winpthreads mingw-w64-x86_64-pkgconf
cmake -B build_pc -G Ninja
cd build_pc
ninja

Warning

Remember that you need to have in the cwd the assets folder and the config.json file!