Git Product home page Git Product logo

mariopicrossripper's Introduction

Mario's Picross Viewer

A simple tool for viewing the solutions for Mario's Picross.

A screenshot of the UI

Simply load your Mario's Picross ROM and move the slider to see the solution for the puzzle at the selected index.

Currently, it can show all 256 playable puzzles and the puzzle used in the How to Play portion of the game (puzzle index 0).

mariopicrossripper's People

Contributors

akagitsuneyuki avatar somfic avatar

Watchers

 avatar

mariopicrossripper's Issues

Crop bitmaps to the size of the puzzles

Right now the bitmap is defaulted to 160 x 150 pixels. It would be nice to have it automatically crop out the unneeded blank area around the puzzle, but my attempt to do so with existing code was unsuccessful.

Getting the width and height from the puzzle data was added in my most recent commit to make this easier in the future. Perhaps just cropping the image with a new function would be a better solution than trying to do it with the existing drawing function.

Improve ROM loading code

The function for opening ROMs uses some pretty terrible code to check if the ROM is the correct file.

At the moment, it loads the whole ROM to a buffer and checks the first few bytes to make sure they are the proper values. This is not good code.

Try to do the following:

  1. Get the size of the ROM
  2. Get the ROM's header to see if it's valid
  3. Check if the first puzzle is valid (via puzzle size or another known value)

I'm not sure if this is a perfect solution, but it should allow for modified ROMs to work (should we ever support ROM hacks)

Ability to export puzzle solutions as bitmaps

Add the ability to export the solutions to the puzzles as bitmap images.

Should be easy enough given that the code needed to generate the bitmaps is already done.

Update: This issue will remain open until the following tasks are completed:

  • Add the ability to export individual puzzles as images
  • Add the ability to export ALL puzzles as images at once
  • Automatically rename bulk exported puzzles to their level names
  • Upscale exported images to make them easier to view and use
  • Add grids to exported images

Select puzzles based on level names

The puzzles are loaded based on their indices in the ROM like this: 0x92B0 + (0x20 * index). This works fine for the back end as this is how the game loads the needed puzzle, but the front end should reflect how the player selects a puzzle to solve while in-game.

The puzzles are divided into levels in the game (seen here), so it would make sense for the front end to have the ability to select based on the level name (i.e. Easy 2-B).

It shouldn't be too difficult to convert the puzzle index to its level name, but this will require modifying the UI to allow selecting a puzzle this way. Consider this a stretch goal for later on in the project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.