Skip to content

sopoforic/cgrr-mariospicross

Repository files navigation

mariospicross

This module allows reading and editing puzzles for the Game Boy game Mario's Picross.

Usage

marios_picross_puzzle_editor_gui.py provides a simple GUI for editing a Mario's Picross ROM to modify the puzzles. A Windows binary is available here.

Under the hood, the GUI uses mariospicross.py.

To parse a ROM for puzzles, use read_puzzles_from_rom:

with open("path/to/picross.gb", "rb") as romfile:
    data = romfile.read()
puzzles = mariospicross.read_puzzles_from_rom(data)

See the docstring on read_puzzles for the format of the parsed puzzles.

To insert puzzles back into a rom, use insert_puzzles

puzzles = [{...}] # whatever puzzles you've made
with open("path/to/picross.gb", "rb") as romfile:
    data = romfile.read()
newdata = mariospicross.insert_puzzles(data, puzzles)
with open("path/to/new_rom.gb", "wb") as romfile:
    romfile.write(newdata)

The new ROM should work anywhere the original would.

Requirements

You can install this with pip install -r requirements.txt.

License

This module is available under the GPL v3 or later. See the file COPYING for details.

Build Status Code Health

About

Read and edit puzzles for the Game Boy game Mario's Picross.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages