tiberiusbrown / Ardens

A simulator for the Arduboy FX that can be used for profiling and debugging.
https://tiberiusbrown.github.io/Ardens/
MIT License
44 stars 7 forks source link
arduboy emulator

Ardens

Ardens is an Arduboy simulator that is useful for profiling and debugging.

screenshot

Try out the full debugger here. Drag and drop an Arduboy game (.hex/.elf/.arduboy) and any FX data (.bin) onto the page.

Try the minimal player with one of the game URLs below:

Features

Keyboard Bindings

Key Purpose
Arrows Arduboy: directional buttons
A/Z Arduboy: A button
S/X/B Arduboy: B button
F1 (Desktop Debugger Only) Save screenshot of entire window
F2 Save screenshot
F3 Toggle GIF recording
F4 (Debugger only) Save snapshot
F5 (Debugger only) Pause/Continue
F8 Reset
F11 Toggle fullscreen
O (Debugger only) Settings window
P (Debugger only) Toggle player mode
R Rotate display

Command Line Usage

To invoke from the command line with specific options and game file(s), use the syntax /path/to/Ardens param=value file=game.hex, where the parameters are the same as in the URL parameters below.

For example:

Ardens palette=highcontrast grid=normal current=true file=game.hex file=fxdata.bin

Creating a link to a playable Arduboy game

There is a web build hosted on GitHub pages: to create a link to a playable Arduboy game using Ardens Player, you can follow these patterns:

https://tiberiusbrown.github.io/Ardens/player.html?file=https://example.com/game.arduboy https://tiberiusbrown.github.io/Ardens/player.html?file=https://example.com/game.hex&file=https://example.com/game.bin

The web builds of the debugger and player accept the following additional URL parameters (e.g., add &param1=value1&param2=value2 to the URL).

g or grid

Overlays the display with a grid to allow easier disambiguation of adjacent pixels. Values: none, normal, red, green, blue, cyan, magenta, yellow, white

p or palette

Adjusts the color palette of the display. Values: default, retro, lowcontrast, highcontrast

af or autofilter

If enabled, applies temporal filtering to the display to help properly render grayscale games. Values: 0, 1

f or filter

(Debugger only) Conditionally applies an upscaling filter. Values: none, scale2x, scale3x, scale4x, hq2x, hq3x, hq4x

ds or downsample

(Debugger only) Downsamples by an integer ratio after applying an upsample filter. Values: 0, 1, 2, 3

ori or orientation

Rotates the display in 90 degree increments (directional button mapping is also rotated as if playing on a rotated Arduboy). Values:

v or volume

Sets the emulated audio gain. Value may be in the range 0 to 200, with 100 being the default.

size (Desktop only)

Sets the initial size of the application window. Value should be in the format <width>x<height> (for example, size=800x400).

i or intscale

Restricts the display scaling to an integral scaling factor. Defaults to false for the web player, and true for all other platforms.

c or current

Enables modeling the display row driver current limit. This effectively darkens rows that have many lit pixels. Defaults to false.

fxport

Sets the port to be used for the flash select. Values:

display

Sets the type of emulated display. Values:

Libraries Used