Attempt of videogame on 3ds
  • C 50.1%
  • Makefile 28.8%
  • C++ 21%
Find a file
2026-10-14 09:06:30 -06:00
.vscode First commit 2026-10-11 17:19:55 -06:00
gfx First commit 2026-10-11 17:19:55 -06:00
include First commit 2026-10-11 17:19:55 -06:00
source Cleaning up README.md 2026-10-14 08:58:16 -06:00
.gitignore First commit 2026-10-11 17:19:55 -06:00
edit.bat Cleaning up README.md 2026-10-14 08:58:16 -06:00
icon.png First commit 2026-10-11 17:19:55 -06:00
LICENSE.txt First commit 2026-10-11 17:19:55 -06:00
Makefile Small refactor/code reorganizing. Working on software 3D rendering. 2026-10-14 02:34:19 -06:00
README.md Update README.md 2026-10-14 09:06:30 -06:00

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

3ds_vscode_template

cJSON

3DS SDL2 TTF compilation/etc

Example for reading OGG, without SDL_Mixer because it's been giving me headaches all day!

Reading files example

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