Create Electron app
3
static/resources/entity/green_circle.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"sprite": "green_circle"
|
||||
}
|
10
static/resources/entity/red_circle.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"sprite": "red_circle",
|
||||
"collision": [
|
||||
{
|
||||
"type": "circle",
|
||||
"center": [0, 0],
|
||||
"radius": 0.46875
|
||||
}
|
||||
]
|
||||
}
|
3
static/resources/entity/red_ellipse.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"sprite": "red_ellipse"
|
||||
}
|
23
static/resources/entity/square.json
Normal 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]
|
||||
]
|
||||
}
|
||||
}
|
12
static/resources/entity/water.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"sprite": "water",
|
||||
"frames": 4,
|
||||
"animation": {
|
||||
"sequence": [
|
||||
[500, 0],
|
||||
[500, 1],
|
||||
[500, 2],
|
||||
[500, 3]
|
||||
]
|
||||
}
|
||||
}
|
84
static/resources/map/test.json
Normal 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, 1, 1, 1],
|
||||
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
||||
[5, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 5],
|
||||
[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],
|
||||
[0, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 0],
|
||||
[0, 10, 5, 5, 5, 14, 1, 1, 13, 5, 5, 5, 9, 0],
|
||||
[0, 0, 0, 0, 0, 6, 1, 1, 4, 0, 0, 0, 0, 0]
|
||||
]
|
||||
},
|
||||
{
|
||||
"tiles": [
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0, 17, 16, 0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],
|
||||
[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],
|
||||
[0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0]
|
||||
]
|
||||
}
|
||||
],
|
||||
"collision": [
|
||||
{
|
||||
"type": "polygon",
|
||||
"vertices": [
|
||||
[ 2, 1],
|
||||
[ 6, 1],
|
||||
[ 6, 2],
|
||||
[ 8, 2],
|
||||
[ 8, 1],
|
||||
[12, 1],
|
||||
[12, 5],
|
||||
[14, 5],
|
||||
[14, 7],
|
||||
[12, 7],
|
||||
[12, 11],
|
||||
[ 8, 11],
|
||||
[ 8, 13],
|
||||
[ 6, 13],
|
||||
[ 6, 11],
|
||||
[ 2, 11],
|
||||
[ 2, 7],
|
||||
[ 0, 7],
|
||||
[ 0, 5],
|
||||
[ 2, 5]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
BIN
static/resources/sprite/entity/green_circle.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
static/resources/sprite/entity/red_circle.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
static/resources/sprite/entity/red_ellipse.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
static/resources/sprite/entity/simple_square.png
Normal file
After Width: | Height: | Size: 155 B |
BIN
static/resources/sprite/entity/square.png
Normal file
After Width: | Height: | Size: 528 B |
BIN
static/resources/sprite/entity/water.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
static/resources/sprite/tile/dirt.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
static/resources/sprite/tile/grass.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
static/resources/sprite/tile/road_left.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
static/resources/sprite/tile/road_right.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
static/resources/sprite/tile/stone/border/bottom_left.png
Normal file
After Width: | Height: | Size: 930 B |
BIN
static/resources/sprite/tile/stone/border/bottom_right.png
Normal file
After Width: | Height: | Size: 927 B |
BIN
static/resources/sprite/tile/stone/floor.png
Normal file
After Width: | Height: | Size: 765 B |
BIN
static/resources/sprite/tile/stone/plate.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
static/resources/sprite/tile/stone/wall/bottom.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
static/resources/sprite/tile/stone/wall/bottom_left.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
static/resources/sprite/tile/stone/wall/bottom_left_inner.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
static/resources/sprite/tile/stone/wall/bottom_right.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
static/resources/sprite/tile/stone/wall/bottom_right_inner.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
static/resources/sprite/tile/stone/wall/left.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
static/resources/sprite/tile/stone/wall/right.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
static/resources/sprite/tile/stone/wall/top.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
static/resources/sprite/tile/stone/wall/top_left.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
static/resources/sprite/tile/stone/wall/top_left_inner.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
static/resources/sprite/tile/stone/wall/top_right.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
static/resources/sprite/tile/stone/wall/top_right_inner.png
Normal file
After Width: | Height: | Size: 1.4 KiB |