Skip to content
/ ON64 Public

Built on top of libdragon, encapsulates functions to aid game development for the Nintendo64

Notifications You must be signed in to change notification settings

TheRDavid/ON64

Repository files navigation

ON64 - Open Nintendo 64 Library

ON64 is a small programming library built ontop of the hardwareinterface Libdragon. The aim of this project is to develop a simple library that provides tools to create Nintendo 64 compatible games. Granted, that alone can be done with Libdragon itself, ON64 simply adds some graphics-functionality, a few development tools and a simple application structure.

How to use it

  1. Build and install the Libdragon-Library if you haven't already (or use a pre-built Dev-ISO )
  2. Download ON64 (no need to install, you'll build the source along with your game)
  3. Create a new folder for your game - it should contain:
    • game.c (your main source file)
    • Makefile
    • clean
    • lib (contains the ON64 source)
    • mips64-elf
  4. Compile using the clean shellscript (sh clean game)

Have a look at the demo-apps to get started.


Things you should read:

Additional Tools:

  • ImageMerger merges to images into one (by sacrificing color-depth) by using an additional color-scheme implemented in ON64
  • SpriteMapper is a tool to create, arrange and merge spritemap animations

To use these tools you'll need to replace mksprite.c inside your libdragon/tools/mksprite - folder with the one in the root-directory of this project and recompile it. To take advantage the merged color-scheme, use -16 as parameter instead of 16/32.

Note: All .c files in the root dir except mksprite.c are test apps not a necessary part of the library. They are half-baked and may not work.

Features

  1. Simplistic Game-Infrastructure
  2. Graphics
    • Flipping
    • Nearest-Neighbour Scaling
    • Bilinear Scaling
    • Rotation
    • Fading
    • Basic Geometries (Circle, Rectangle, Triangle)
    • 4-Corner Distortion
    • Whirl-Effect
    • Additinal 8-Bit color-scheme
  3. Dev-Tools
    • FPS-Display
    • Memory-Monitor
    • Debug-Output
  4. Desktop-Tools
    • Image Merger
    • Spritemap Creator

About

Built on top of libdragon, encapsulates functions to aid game development for the Nintendo64

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published