Create Electron app

This commit is contained in:
Matthias Schiffer 2018-12-08 12:39:18 +01:00
parent 439dcf3917
commit b3950330e3
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
65 changed files with 3039 additions and 135 deletions

View file

@ -0,0 +1,3 @@
{
"sprite": "green_circle"
}

View file

@ -0,0 +1,10 @@
{
"sprite": "red_circle",
"collision": [
{
"type": "circle",
"center": [0, 0],
"radius": 0.46875
}
]
}

View file

@ -0,0 +1,3 @@
{
"sprite": "red_ellipse"
}

View file

@ -0,0 +1,23 @@
{
"sprite": "square",
"collision": [
{
"type": "polygon",
"vertices": [
[-0.46875, -0.46875],
[-0.46875, 0.46875],
[0.46875, 0.46875],
[0.46875, -0.46875]
]
}
],
"frames": 4,
"animation": {
"sequence": [
[500, 0],
[500, 1],
[500, 2],
[500, 3]
]
}
}

View file

@ -0,0 +1,12 @@
{
"sprite": "water",
"frames": 4,
"animation": {
"sequence": [
[500, 0],
[500, 1],
[500, 2],
[500, 3]
]
}
}

View file

@ -0,0 +1,84 @@
{
"tiles": [
"-stone/floor",
"-stone/plate",
"-stone/wall/top",
"-stone/wall/right",
"-stone/wall/bottom",
"-stone/wall/left",
"-stone/wall/top_left",
"-stone/wall/top_right",
"-stone/wall/bottom_right",
"-stone/wall/bottom_left",
"-stone/wall/top_left_inner",
"-stone/wall/top_right_inner",
"-stone/wall/bottom_right_inner",
"-stone/wall/bottom_left_inner",
"@water",
"-stone/border/bottom_right",
"-stone/border/bottom_left"
],
"layers": [
{
"tiles": [
[0, 7, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 8, 0],
[0, 6, 1, 1, 1, 1, 15, 15, 1, 1, 1, 1, 4, 0],
[0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0],
[0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0],
[3, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 12, 3],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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],
[ 6, 11],
[ 2, 11],
[ 2, 7],
[ 0, 7],
[ 0, 5],
[ 2, 5]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 528 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 930 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB