https://github.com/hypevhs/ctrmagic
Nintendo 3DS development
https://github.com/hypevhs/ctrmagic
devkitpro game-development graphics homebrew
Last synced: about 1 month ago
JSON representation
Nintendo 3DS development
- Host: GitHub
- URL: https://github.com/hypevhs/ctrmagic
- Owner: hypevhs
- Created: 2016-05-24T20:41:36.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-09T02:45:52.000Z (over 9 years ago)
- Last Synced: 2024-06-28T17:42:24.657Z (almost 2 years ago)
- Topics: devkitpro, game-development, graphics, homebrew
- Language: C
- Homepage:
- Size: 1.82 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CS321 Graphics Final Project - 3DS Homebrew
Source and commit history from https://github.com/libjared/ctrmagic
## File list
- png2tex.py - python program to convert png textures into raw .bin files
- Makefile - used to compile the .3dsx binary. You must use the make program provided by devkitPro.
- assets/ - texture BINs and model OBJs
- source/main.c - majority of the code lies in here
- source/diamondsquare.c - my implementation of diamond-square algorithm
- source/music.c - 3DS sound driver and music player
- source/myfs.c - file reading frontend (used to be more involved before fopen etc. started working)
- source/tinyobj_loader_c.h - [OBJ parsing library](https://github.com/syoyo/tinyobjloader-c)
- source/vshader.pica - PICA200 GPU shader program assembly source code
## Prerequisites
You must have
- a 3DS with homebrew
- devkitPro installed
- the latest ctrulib from GitHub
- the latest citro3d from GitHub
- libxmp-lite from [3ds-portlibs](https://github.com/devkitPro/3ds_portlibs) installed in $DEVKITPRO/portlibs/armv6k/{include,lib}
## How to build
- Transfer all bin/obj assets to your 3DS SD card `sdmc:/3ds/ctrmagic/`
- Press Y on Homebrew Channel to accept loading a program over WiFi
```
$ make
$ 3dslink -a ctrmagic.3dsx
```
- Then the game should automatically run.