https://github.com/msinger/dmg_cpu_b_map
Web-based map of the Gameboy DMG-CPU B with overlays
https://github.com/msinger/dmg_cpu_b_map
asic chip dmg-001 dmg-cpu electronics game-boy gameboy leaflet-map nintendo reverse-engineering silicon
Last synced: 3 months ago
JSON representation
Web-based map of the Gameboy DMG-CPU B with overlays
- Host: GitHub
- URL: https://github.com/msinger/dmg_cpu_b_map
- Owner: msinger
- License: other
- Created: 2021-08-20T20:06:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-11-29T01:08:34.000Z (4 months ago)
- Last Synced: 2025-12-01T02:40:55.463Z (4 months ago)
- Topics: asic, chip, dmg-001, dmg-cpu, electronics, game-boy, gameboy, leaflet-map, nintendo, reverse-engineering, silicon
- Language: JavaScript
- Homepage:
- Size: 4.37 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Game Boy DMG CPU B Leaflet Map
==============================
Web-based map of the Gameboy DMG-CPU B with overlays.
Made with [Leaflet](https://leafletjs.com/), [Leaflet-Minimap](https://github.com/Norkart/Leaflet-MiniMap/),
[Leaflet-Nanoscale](https://github.com/whitequark/Leaflet.Nanoscale/) and
[Leaflet-PolylineMeasure](https://github.com/ppete2/Leaflet.PolylineMeasure).
Live version of the map
-----------------------
You can use the latest version of the map [here](http://iceboy.a-singer.de/dmg_cpu_b_map/).

Getting the images and generating the tiles
-------------------------------------------
The actual images are not included in this repository. They have to be manually exported from Inkscape
and then processed by `scripts/gen_tiles.sh`.
You can get the SVG file which contains the cells, wires and labels overlays
[here](https://github.com/msinger/dmg-schematics/tree/master/dmg_cpu_b/overlay).
Short instructions and download links for the die shots can be found
[here](https://github.com/msinger/dmg-schematics#overlay).
Once you've opened the SVG in Inkscape, you have to export each layer, one by one, using these export settings:

Export the transparent layers as PNGs and the die shots as JPEG.
Create a folder called `img_src` in this repo and put the files in there with the following names:
```
img_src/cells.png
img_src/die_mz_20x.jpg
img_src/die_s1_1_20x.jpg
img_src/labels.png
img_src/wires.png
```
Then change into the `scripts` directory and run the script that converts all images to tiles:
```
cd scripts
./gen_all.sh
```
`gen_all.sh` runs `gen_tiles.sh` for each of the images, which uses ImageMagick's `convert` command for cropping and
scaling the images. So you need to have ImageMagick installed for this to work.
The tiles will be output into the `map` directory. Now you should be able to open the `index.html` file
in a browser to use the map.