Skip to content

Commit

Permalink
add mapping variations to megapad skins
Browse files Browse the repository at this point in the history
Retro-Bit, you disappointed me.
  • Loading branch information
Dinir committed Sep 11, 2021
1 parent 6990b59 commit 95b4e3a
Show file tree
Hide file tree
Showing 5 changed files with 604 additions and 14 deletions.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@
['joystick-a_d', 'Joystick (A Layout) (D Button)'],
['joystick-m', 'Joystick (M Layout)'],
['joystick-m_coloured', 'Joystick (M Layout) (Coloured)'],
['megapad', 'Mega Pad'],
['megapad-rb_m', 'Mega Pad (RB M Layout)'],
['megapad-rb_s', 'Mega Pad (RB S Layout)'],
['megapad-8bd', 'Mega Pad (8BD Layout)'],
['gamepad-super', 'Super Pad'],
['hbox', 'HBox'],
['biker', 'Biker']
Expand Down
Binary file modified skin/megapad.mpskin.zip
Binary file not shown.
26 changes: 13 additions & 13 deletions skin/megapad/megapad.mpskin.json → skin/megapad/8bd.mpskin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Mega Pad",
"name": "Mega Pad (8BD Layout)",
"author": null,
"properties": [
"joystick"
Expand Down Expand Up @@ -213,79 +213,79 @@
"clear": [
{
"instruction": "clearRect",
"x": 179, "y": 24, "width": 24, "height": 24
"x": 11, "y": 0, "width": 49, "height": 20
}
],
"off": [
{
"instruction": "drawImage",
"src": 0, "srcPos": [132, 0], "size": [24, 24], "canvasPos": [179, 24]
"src": 0, "srcPos": [156, 0], "size": [49, 20], "canvasPos": [11, 0]
}
],
"on": [
{
"instruction": "drawImage",
"src": 1, "srcPos": [132, 0], "size": [24, 24], "canvasPos": [179, 24]
"src": 1, "srcPos": [156, 0], "size": [49, 20], "canvasPos": [11, 0]
}
]
},
"r1": {
"clear": [
{
"instruction": "clearRect",
"x": 195, "y": 48, "width": 28, "height": 28
"x": 179, "y": 24, "width": 24, "height": 24
}
],
"off": [
{
"instruction": "drawImage",
"src": 0, "srcPos": [56, 0], "size": [28, 28], "canvasPos": [195, 48]
"src": 0, "srcPos": [132, 0], "size": [24, 24], "canvasPos": [179, 24]
}
],
"on": [
{
"instruction": "drawImage",
"src": 1, "srcPos": [56, 0], "size": [28, 28], "canvasPos": [195, 48]
"src": 1, "srcPos": [132, 0], "size": [24, 24], "canvasPos": [179, 24]
}
]
},
"l2": {
"clear": [
{
"instruction": "clearRect",
"x": 11, "y": 0, "width": 49, "height": 20
"x": 164, "y": 0, "width": 49, "height": 20
}
],
"off": [
{
"instruction": "drawImage",
"src": 0, "srcPos": [156, 0], "size": [49, 20], "canvasPos": [11, 0]
"src": 0, "srcPos": [205, 0], "size": [49, 20], "canvasPos": [164, 0]
}
],
"on": [
{
"instruction": "drawImage",
"src": 1, "srcPos": [156, 0], "size": [49, 20], "canvasPos": [11, 0]
"src": 1, "srcPos": [205, 0], "size": [49, 20], "canvasPos": [164, 0]
}
]
},
"r2": {
"clear": [
{
"instruction": "clearRect",
"x": 164, "y": 0, "width": 49, "height": 20
"x": 195, "y": 48, "width": 28, "height": 28
}
],
"off": [
{
"instruction": "drawImage",
"src": 0, "srcPos": [205, 0], "size": [49, 20], "canvasPos": [164, 0]
"src": 0, "srcPos": [56, 0], "size": [28, 28], "canvasPos": [195, 48]
}
],
"on": [
{
"instruction": "drawImage",
"src": 1, "srcPos": [205, 0], "size": [49, 20], "canvasPos": [164, 0]
"src": 1, "srcPos": [56, 0], "size": [28, 28], "canvasPos": [195, 48]
}
]
}
Expand Down

0 comments on commit 95b4e3a

Please sign in to comment.