diff options
Diffstat (limited to 'static/resources')
32 files changed, 135 insertions, 0 deletions
diff --git a/static/resources/entity/green_circle.json b/static/resources/entity/green_circle.json new file mode 100644 index 0000000..14952b2 --- /dev/null +++ b/static/resources/entity/green_circle.json @@ -0,0 +1,3 @@ +{ + "sprite": "green_circle" +} diff --git a/static/resources/entity/red_circle.json b/static/resources/entity/red_circle.json new file mode 100644 index 0000000..65af16a --- /dev/null +++ b/static/resources/entity/red_circle.json @@ -0,0 +1,10 @@ +{ + "sprite": "red_circle", + "collision": [ + { + "type": "circle", + "center": [0, 0], + "radius": 0.46875 + } + ] +} diff --git a/static/resources/entity/red_ellipse.json b/static/resources/entity/red_ellipse.json new file mode 100644 index 0000000..e8ce5e6 --- /dev/null +++ b/static/resources/entity/red_ellipse.json @@ -0,0 +1,3 @@ +{ + "sprite": "red_ellipse" +} diff --git a/static/resources/entity/square.json b/static/resources/entity/square.json new file mode 100644 index 0000000..643cfb6 --- /dev/null +++ b/static/resources/entity/square.json @@ -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] + ] + } +} diff --git a/static/resources/entity/water.json b/static/resources/entity/water.json new file mode 100644 index 0000000..79c7780 --- /dev/null +++ b/static/resources/entity/water.json @@ -0,0 +1,12 @@ +{ + "sprite": "water", + "frames": 4, + "animation": { + "sequence": [ + [500, 0], + [500, 1], + [500, 2], + [500, 3] + ] + } +} diff --git a/static/resources/map/test.json b/static/resources/map/test.json new file mode 100644 index 0000000..91efc19 --- /dev/null +++ b/static/resources/map/test.json @@ -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] + ] + } + ] +} diff --git a/static/resources/sprite/entity/green_circle.png b/static/resources/sprite/entity/green_circle.png Binary files differnew file mode 100644 index 0000000..71cdadb --- /dev/null +++ b/static/resources/sprite/entity/green_circle.png diff --git a/static/resources/sprite/entity/red_circle.png b/static/resources/sprite/entity/red_circle.png Binary files differnew file mode 100644 index 0000000..1bdf36c --- /dev/null +++ b/static/resources/sprite/entity/red_circle.png diff --git a/static/resources/sprite/entity/red_ellipse.png b/static/resources/sprite/entity/red_ellipse.png Binary files differnew file mode 100644 index 0000000..9acf873 --- /dev/null +++ b/static/resources/sprite/entity/red_ellipse.png diff --git a/static/resources/sprite/entity/simple_square.png b/static/resources/sprite/entity/simple_square.png Binary files differnew file mode 100644 index 0000000..7c427cc --- /dev/null +++ b/static/resources/sprite/entity/simple_square.png diff --git a/static/resources/sprite/entity/square.png b/static/resources/sprite/entity/square.png Binary files differnew file mode 100644 index 0000000..9fcb9f9 --- /dev/null +++ b/static/resources/sprite/entity/square.png diff --git a/static/resources/sprite/entity/water.png b/static/resources/sprite/entity/water.png Binary files differnew file mode 100644 index 0000000..61c2d4f --- /dev/null +++ b/static/resources/sprite/entity/water.png diff --git a/static/resources/sprite/tile/dirt.png b/static/resources/sprite/tile/dirt.png Binary files differnew file mode 100644 index 0000000..5961666 --- /dev/null +++ b/static/resources/sprite/tile/dirt.png diff --git a/static/resources/sprite/tile/grass.png b/static/resources/sprite/tile/grass.png Binary files differnew file mode 100644 index 0000000..7835867 --- /dev/null +++ b/static/resources/sprite/tile/grass.png diff --git a/static/resources/sprite/tile/road_left.png b/static/resources/sprite/tile/road_left.png Binary files differnew file mode 100644 index 0000000..3e81507 --- /dev/null +++ b/static/resources/sprite/tile/road_left.png diff --git a/static/resources/sprite/tile/road_right.png b/static/resources/sprite/tile/road_right.png Binary files differnew file mode 100644 index 0000000..30bb2a2 --- /dev/null +++ b/static/resources/sprite/tile/road_right.png diff --git a/static/resources/sprite/tile/stone/border/bottom_left.png b/static/resources/sprite/tile/stone/border/bottom_left.png Binary files differnew file mode 100644 index 0000000..ed9be55 --- /dev/null +++ b/static/resources/sprite/tile/stone/border/bottom_left.png diff --git a/static/resources/sprite/tile/stone/border/bottom_right.png b/static/resources/sprite/tile/stone/border/bottom_right.png Binary files differnew file mode 100644 index 0000000..71782d2 --- /dev/null +++ b/static/resources/sprite/tile/stone/border/bottom_right.png diff --git a/static/resources/sprite/tile/stone/floor.png b/static/resources/sprite/tile/stone/floor.png Binary files differnew file mode 100644 index 0000000..f6ebb94 --- /dev/null +++ b/static/resources/sprite/tile/stone/floor.png diff --git a/static/resources/sprite/tile/stone/plate.png b/static/resources/sprite/tile/stone/plate.png Binary files differnew file mode 100644 index 0000000..fb8d405 --- /dev/null +++ b/static/resources/sprite/tile/stone/plate.png diff --git a/static/resources/sprite/tile/stone/wall/bottom.png b/static/resources/sprite/tile/stone/wall/bottom.png Binary files differnew file mode 100644 index 0000000..13d0928 --- /dev/null +++ b/static/resources/sprite/tile/stone/wall/bottom.png diff --git a/static/resources/sprite/tile/stone/wall/bottom_left.png b/static/resources/sprite/tile/stone/wall/bottom_left.png Binary files differnew file mode 100644 index 0000000..861565a --- /dev/null +++ b/static/resources/sprite/tile/stone/wall/bottom_left.png diff --git a/static/resources/sprite/tile/stone/wall/bottom_left_inner.png b/static/resources/sprite/tile/stone/wall/bottom_left_inner.png Binary files differnew file mode 100644 index 0000000..348821c --- /dev/null +++ b/static/resources/sprite/tile/stone/wall/bottom_left_inner.png diff --git a/static/resources/sprite/tile/stone/wall/bottom_right.png b/static/resources/sprite/tile/stone/wall/bottom_right.png Binary files differnew file mode 100644 index 0000000..4290010 --- /dev/null +++ b/static/resources/sprite/tile/stone/wall/bottom_right.png diff --git a/static/resources/sprite/tile/stone/wall/bottom_right_inner.png b/static/resources/sprite/tile/stone/wall/bottom_right_inner.png Binary files differnew file mode 100644 index 0000000..2c235ea --- /dev/null +++ b/static/resources/sprite/tile/stone/wall/bottom_right_inner.png diff --git a/static/resources/sprite/tile/stone/wall/left.png b/static/resources/sprite/tile/stone/wall/left.png Binary files differnew file mode 100644 index 0000000..a7791ec --- /dev/null +++ b/static/resources/sprite/tile/stone/wall/left.png diff --git a/static/resources/sprite/tile/stone/wall/right.png b/static/resources/sprite/tile/stone/wall/right.png Binary files differnew file mode 100644 index 0000000..5f78ced --- /dev/null +++ b/static/resources/sprite/tile/stone/wall/right.png diff --git a/static/resources/sprite/tile/stone/wall/top.png b/static/resources/sprite/tile/stone/wall/top.png Binary files differnew file mode 100644 index 0000000..6ecad42 --- /dev/null +++ b/static/resources/sprite/tile/stone/wall/top.png diff --git a/static/resources/sprite/tile/stone/wall/top_left.png b/static/resources/sprite/tile/stone/wall/top_left.png Binary files differnew file mode 100644 index 0000000..3a0c4fa --- /dev/null +++ b/static/resources/sprite/tile/stone/wall/top_left.png diff --git a/static/resources/sprite/tile/stone/wall/top_left_inner.png b/static/resources/sprite/tile/stone/wall/top_left_inner.png Binary files differnew file mode 100644 index 0000000..60d4b68 --- /dev/null +++ b/static/resources/sprite/tile/stone/wall/top_left_inner.png diff --git a/static/resources/sprite/tile/stone/wall/top_right.png b/static/resources/sprite/tile/stone/wall/top_right.png Binary files differnew file mode 100644 index 0000000..9d06f10 --- /dev/null +++ b/static/resources/sprite/tile/stone/wall/top_right.png diff --git a/static/resources/sprite/tile/stone/wall/top_right_inner.png b/static/resources/sprite/tile/stone/wall/top_right_inner.png Binary files differnew file mode 100644 index 0000000..20cb074 --- /dev/null +++ b/static/resources/sprite/tile/stone/wall/top_right_inner.png |