breadbored / N64-RPG

An RPG engine made for the Nintendo 64
Apache License 2.0
182 stars 3 forks source link

RPG Engine for the Nintendo 64

About

This unnamed project is an attempt to write all the parts of an RPG from scratch. Below is the list of features currently being written:

Setup

If you are on Windows, you will need to first set up WSL to get a linux environment in Windows

You will need to install the following (if you are using WSL, you will need to install inside that environment):

To get libdragon setup, you will need to run the following:

To build the project:

This will produce an N64 ROM called breacodes.z64

Screenshot

Playing

The best way to play is on a real Nintendo 64 via a flashcart

However if you must use an emulator, you must use an accurate emulator such as Ares. Common emulators are not accurate. They are typically optimized to run official games at a good speed, but are not hardware accurate. libdragon is a different from the official SDK, and most emulators cover emulation for the official SDK only, meaning it requires hardware accuracy or specially built support.

Editing the map

To make the map, I used software called Tiled. You can find the project file at map/n64-rpg.tiled-project. I export as a CSV called overworld.csv and it will generate a CSV for each layer.

To build the mpa, run the included tool with python3 tools/makemap.py to generate the map file.

Important notes:

I work only in the positive area (0,0) and higher. Do not add any tiles in the negative coordinates or it will shift the entire map.

Tiled does not export with perfect coordinates in CSV format, so every layer must have a tile in the (0,0) coordinate. This is to prevent offset problems. For example, the background layer has a grass tile at (0,0), and the foreground layer has a tree.