Attempt of videogame on 3ds
- C 50.1%
- Makefile 28.8%
- C++ 21%
| .vscode | ||
| gfx | ||
| include | ||
| source | ||
| .gitignore | ||
| edit.bat | ||
| icon.png | ||
| LICENSE.txt | ||
| Makefile | ||
| README.md | ||
Another RPG
A first person dungeon crawler in the works.
TODO:
- Map read from JSON (cJSON)
DOING:
- Basic software 3D rendering (SDL)
DONE:
- SDL setup.
- Text rendering (SDL_ttf)
- Image loading (SDL_image)
- Input handling (libctru)
- Audio module (libctru)
Getting Started
Before this template will work, we need to install the compiler toolchian and the necessary extensions for the development environment.
devkitPro
Follow the instructions on the Getting Started page.
VS Code
Install a copy of Visual Studio Code if you don't have it already, and also install the following extensions:
Running the make build task will create an .3dsx file at the root of the project. You can run this file in the emulator by running the run task.
TODO: List all libraries for SDL setup.
Helpful stuff
Special Thanks
Links
Example for reading OGG, without SDL_Mixer because it's been giving me headaches all day!
Manual compilation (for almost anything)
git clone https://github.com/libsdl-org/SDL_ttf.git
cd SDL_ttf
git checkout release-2.24.0
rm -rf Xcode
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="$DEVKITPRO/cmake/3DS.cmake" -DCMAKE_BUILD_TYPE=Release
cmake --build . -- -j4