1.0.3 • Published 2 years ago

mio-loader v1.0.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 years ago

mio-loader

A loader for binary mio files. An example output after loading might be:

{
    "length": "Short",
    "command": "Poke!",
    "objects": [
        {
            "name": "LADYBIRD",
            "spriteSize": 64,
            "art": [
                {
                    "name": "WIGGLE",
                    "bank": {
                        "0": 0,
                        "1": 16
                    },
                    "collisionArea": {
                        "min": {
                            "x": 8,
                            "y": 3
                        },
                        "max": {
                            "x": 58,
                            "y": 56
                        }
                    }
                },
                null,
                null,
                null
            ],
            "startInstruction": {
                "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": 34
                        },
                        {
                            "tag": "Switch",
                            "switchTo": "On"
                        }
                    ]
                }
            ]
        }
    ],
    "winConditions": [
        [
            {
                "index": 0,
                "switchState": "On"
            }
        ]
    ],
    "layers": [
        0
    ]
}

Documentation upcoming.

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.2.1

2 years ago

1.0.3

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago