Skip to content

yeahross0/Mio-Micro

Repository files navigation

Mio Micro

This project can extract the AI data from mio files and attempt to play the games.

Test it out here. Drag and drop a MIO file and open the console logs to see the JSON output.

There are some notes on the file format in notes.md.

Parser

A parser that can convert a binary mio file to JSON. A simple example JSON result:

{
    "length": "Short",
    "objects": [
        {
            "name": "LADYBIRD",
            "sprite_size": 64,
            "art": [
                {
                    "name": "WIGGLE",
                    "bank": {
                        "0": 0,
                        "1": 16
                    }
                },
                null,
                null,
                null
            ],
            "start_instruction": {
                "art": {
                    "index": 0,
                    "style": "Loop",
                    "speed": "Normal"
                },
                "location": {
                    "tag": "Position",
                    "position": {
                        "x": 96,
                        "y": 64
                    }
                }
            },
            "instructions": [
                {
                    "triggers": [
                        {
                            "tag": "TapThisObject"
                        }
                    ],
                    "actions": [
                        {
                            "tag": "Travel",
                            "travel": "GoStraight",
                            "from": {
                                "tag": "Current"
                            },
                            "direction": {
                                "tag": "Specific",
                                "direction": "North"
                            },
                            "speed": "Normal"
                        },
                        {
                            "tag": "SoundEffect",
                            "effect": 37
                        },
                        {
                            "tag": "Switch",
                            "switch_to": "On"
                        }
                    ]
                }
            ]
        },
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null
    ],
    "win_conditions": [
        [
            {
                "index": 0,
                "switch_state": "On"
            }
        ],
        [],
        [],
        [],
        [],
        []
    ]
}

Player

A rough prototype mio file player so you can see if the parser is outputting sensible values. Music and some AI functionality has not been implemented yet.

About

Prototype for parsing and playing mio files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published