CavEX/README.md

95 lines
3 KiB
Markdown
Raw Permalink Normal View History

2023-04-22 13:35:46 -04:00
# CavEX
2023-04-22 13:33:55 -04:00
*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* 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
* generation of new chunks
* biome colors
* ~~player physics~~
* ~~inventory management~~
2023-05-02 18:01:32 -04:00
* ~~block placement~~ and destruction logic
* ~~(random)~~ block updates
* ~~item actions~~
2023-04-22 13:33:55 -04:00
* real texture pack support
* Beta 1.7.3 multiplayer support
2023-04-22 13:35:46 -04:00
## Screenshot
2023-04-22 13:33:55 -04:00
![ingame0](docs/ingame0.png)
*(from the PC version)*
2023-04-22 13:35:46 -04:00
## Build instructions
2023-04-22 13:33:55 -04:00
You need to download these libraries yourself and place their source files to the following directories. They are required for any platform.
| library | files | destination |
| --- | --- | --- |
| [LodePNG](https://github.com/lvandeve/lodepng) | `lodepng.h` and `lodepng.c` | `source/lodepng/` |
| [cglm](https://github.com/recp/cglm) | `include/cglm/` | `source/cglm/` |
2023-04-22 14:11:55 -04:00
| [cNBT](https://github.com/chmod222/cNBT) | `buffer.c`, `buffer.h`, `list.h`, `nbt_loading.c`, `nbt_parsing.c`, `nbt_treeops.c`, `nbt_util.c` and `nbt.h` | `source/cNBT/` |
2023-07-05 17:01:59 -04:00
| [parson](https://github.com/kgabis/parson) | `parson.h` and `parson.c` | `source/parson/` |
2023-04-22 14:11:55 -04:00
| [M*LIB](https://github.com/P-p-H-d/mlib) | any root `*.h` | compiler include path |
2023-04-22 13:33:55 -04:00
2023-04-22 13:35:46 -04:00
### Wii
2023-04-22 13:33:55 -04:00
For the Wii platform you need to install the [devkitPro](https://devkitpro.org/wiki/Getting_Started) Wii/Gamecube environment. Additionally install zlib using pacman of devkitPro.
```bash
dkp-pacman -S wii-dev ppc-zlib
```
To build, simply run make in the root directory. You might need to load the cross compiler env first (required e.g. if you use [fish](https://fishshell.com/) instead of bash).
```bash
source /etc/profile.d/devkit-env.sh
make
```
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
2023-07-05 17:01:59 -04:00
├── config.json
2023-04-22 13:33:55 -04:00
├── icon.png
└── meta.xml
```
2023-04-22 13:35:46 -04:00
### GNU/Linux
2023-04-22 13:33:55 -04:00
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.
```bash
mkdir build_pc
cd build_pc
cmake ..
make
```
2023-07-05 17:01:59 -04:00
Please also copy the fragment and vertex shaders from `resources/` next to your `assets/` directory.