Jump to content
Search

The new Ubuntu Wiki is live. Legacy content may be unavailable and page links may have changed. Read the announcement on Discourse.

Uxn

From Ubuntu Wiki

uxn is a virtual machine/emulator for the Uxn 8-bit stack-based computer architecture.

Varvara is a minimalist, virtual computer system built on top of uxn.

uxn and Varvara were developed by Devine Lu Linvega and Rek Bell (AKA 100 Rabbits).

Setup

Prerequisites

You will need to a graphical Ubuntu desktop environment to follow this guide.

You also need to install SDL as a dependency:

Simple line graphics in black-and-white showing a controller and a stylus. Coordinates on the screen respond to input, including mouse position.
Window shown after building uxn.
sudo apt install libsdl2-dev

Installation

Clone the source code for uxn to your machine from Sourcehut:

git clone https://git.sr.ht/~rabbits/uxn2

Change into the directory and run the makefile:

cd uxn && make
A small window showing a grid of dots. The player taps a dot to switch it and its neighbours. You win when all the dots are the same color.
Lights Out game running in uxn/Varvara

Running applications on Varvara

You can find roms online[1] that run on uxn/Varvara.

Let's use the Lights Out game[2] as an example.

Download lights-out.rom from github.com/origedit/lights-out.

Run the rom with:

./bin/uxn2 /path/to/lights-out.rom

Notes and references

  1. https://github.com/hundredrabbits/awesome-uxn#applications
  2. The system is not restricted to games. Text editors and other utilities have also been developed using uxn.