Skip to content

gabrieloc/GIOVANNI

Repository files navigation

GIOVANNI GAMEPLAY GIOVANNI

A Gameboy Emulator for the Apple Watch.

Interested in how this was made? Check out the write-up here

Installation

Giovanni uses git submodules for it's one dependency, a modified version of the Gambatte emulator. When cloning, ensure submodules are also pulled down:

$ git clone --recursive [email protected]:gabrieloc/GIOVANNI.git

To run on your device:

  1. Make sure you have an Apple developer account
  2. Select your development team under the Signing area for each target (giovanni_iOS, giovanni_watchOS, giovanni WatchKit Extension, and Gambatte_watchOS)
  3. Change the Bundle Identifier for each of the above targets to something unique. For example, giovanni_iOS uses com.gabrieloc.giovanni, so change that to something like com.YOUR_USERNAME.giovanni.
  4. Select the giovanni scheme in the top left corner with your device selected and run.

If you are still having issues, please following the tutorial provided by Redmond Pie

Usage

Games are loaded from your iPhone's documents directory. In iTunes, drop .gb or .gbc files into the Giovanni app documents folder, and they'll show up automatically on your Apple Watch. When you play a game for the first time, it'll download to your watch and get cached in the watch's documents directory. Subsequent loads are immediate.

UPDATE: Giovanni can open ROMs natively, allowing you to bypass iTunes entirely. More info.

Emulator saving and loading is automatic, and happens whenever the app gets closed/inactivated or opened/activated. In-game saving and loading is completely separate. If for some reason the emulator save gets corrupted, force-touching the screen will bring up the option to reset the emulator, allowing you to resume from your in-game save.

The control scheme is as follows:

Controls

Troubleshooting

Disclaimer: Due to the constraints of watchOS, you may experience crashes or graphical glitches. Keep in mind that this project likely does not align with what Apple expects from the platform, which in turn makes it difficult to optimize and debug.

If for some reason the app becomes unresponsive and must be force-quit, you can do so by having the app in the foreground, pressing the side button, then pressing and holding the Digital Crown for about 5 seconds.

Games don't show up

Because Giovanni relies on your iPhone for transferring games, ensure your paired iPhone is on and within reach.

Garbled (or all white) pixels

Video memory often gets corrupt, in which case you will have to force emulation to be reset. While in-game, force touch the screen and select Reset. If the app closes after that, you will have to re-open, and repeat the process until it works.

Colors wrong

Some games appear to format pixel data differently. The rendering work is done in GameCoreSnapshots.swift, you may have luck adjusting how the Core Graphics context is created.

Known Issues

Games sometime crash when trying to fill the sound buffer

The sound buffer isn't even used, but required by Gambatte. The issue goes away after re-opening the app, but is a huge pain regardless.