summaryrefslogtreecommitdiffstats
path: root/static/resources
diff options
context:
space:
mode:
Diffstat (limited to 'static/resources')
-rw-r--r--static/resources/entity/green_circle.json3
-rw-r--r--static/resources/entity/red_circle.json10
-rw-r--r--static/resources/entity/red_ellipse.json3
-rw-r--r--static/resources/entity/square.json23
-rw-r--r--static/resources/entity/water.json12
-rw-r--r--static/resources/map/test.json84
-rw-r--r--static/resources/sprite/entity/green_circle.pngbin0 -> 1776 bytes
-rw-r--r--static/resources/sprite/entity/red_circle.pngbin0 -> 1844 bytes
-rw-r--r--static/resources/sprite/entity/red_ellipse.pngbin0 -> 1700 bytes
-rw-r--r--static/resources/sprite/entity/simple_square.pngbin0 -> 155 bytes
-rw-r--r--static/resources/sprite/entity/square.pngbin0 -> 528 bytes
-rw-r--r--static/resources/sprite/entity/water.pngbin0 -> 1718 bytes
-rw-r--r--static/resources/sprite/tile/dirt.pngbin0 -> 1035 bytes
-rw-r--r--static/resources/sprite/tile/grass.pngbin0 -> 1296 bytes
-rw-r--r--static/resources/sprite/tile/road_left.pngbin0 -> 1391 bytes
-rw-r--r--static/resources/sprite/tile/road_right.pngbin0 -> 1387 bytes
-rw-r--r--static/resources/sprite/tile/stone/border/bottom_left.pngbin0 -> 930 bytes
-rw-r--r--static/resources/sprite/tile/stone/border/bottom_right.pngbin0 -> 927 bytes
-rw-r--r--static/resources/sprite/tile/stone/floor.pngbin0 -> 765 bytes
-rw-r--r--static/resources/sprite/tile/stone/plate.pngbin0 -> 1443 bytes
-rw-r--r--static/resources/sprite/tile/stone/wall/bottom.pngbin0 -> 1399 bytes
-rw-r--r--static/resources/sprite/tile/stone/wall/bottom_left.pngbin0 -> 1643 bytes
-rw-r--r--static/resources/sprite/tile/stone/wall/bottom_left_inner.pngbin0 -> 1458 bytes
-rw-r--r--static/resources/sprite/tile/stone/wall/bottom_right.pngbin0 -> 1676 bytes
-rw-r--r--static/resources/sprite/tile/stone/wall/bottom_right_inner.pngbin0 -> 1478 bytes
-rw-r--r--static/resources/sprite/tile/stone/wall/left.pngbin0 -> 1505 bytes
-rw-r--r--static/resources/sprite/tile/stone/wall/right.pngbin0 -> 1498 bytes
-rw-r--r--static/resources/sprite/tile/stone/wall/top.pngbin0 -> 1374 bytes
-rw-r--r--static/resources/sprite/tile/stone/wall/top_left.pngbin0 -> 1680 bytes
-rw-r--r--static/resources/sprite/tile/stone/wall/top_left_inner.pngbin0 -> 1459 bytes
-rw-r--r--static/resources/sprite/tile/stone/wall/top_right.pngbin0 -> 1640 bytes
-rw-r--r--static/resources/sprite/tile/stone/wall/top_right_inner.pngbin0 -> 1459 bytes
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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git a/static/resources/sprite/entity/green_circle.png b/static/resources/sprite/entity/green_circle.png
new file mode 100644
index 0000000..71cdadb
--- /dev/null
+++ b/static/resources/sprite/entity/green_circle.png
Binary files differ
diff --git a/static/resources/sprite/entity/red_circle.png b/static/resources/sprite/entity/red_circle.png
new file mode 100644
index 0000000..1bdf36c
--- /dev/null
+++ b/static/resources/sprite/entity/red_circle.png
Binary files differ
diff --git a/static/resources/sprite/entity/red_ellipse.png b/static/resources/sprite/entity/red_ellipse.png
new file mode 100644
index 0000000..9acf873
--- /dev/null
+++ b/static/resources/sprite/entity/red_ellipse.png
Binary files differ
diff --git a/static/resources/sprite/entity/simple_square.png b/static/resources/sprite/entity/simple_square.png
new file mode 100644
index 0000000..7c427cc
--- /dev/null
+++ b/static/resources/sprite/entity/simple_square.png
Binary files differ
diff --git a/static/resources/sprite/entity/square.png b/static/resources/sprite/entity/square.png
new file mode 100644
index 0000000..9fcb9f9
--- /dev/null
+++ b/static/resources/sprite/entity/square.png
Binary files differ
diff --git a/static/resources/sprite/entity/water.png b/static/resources/sprite/entity/water.png
new file mode 100644
index 0000000..61c2d4f
--- /dev/null
+++ b/static/resources/sprite/entity/water.png
Binary files differ
diff --git a/static/resources/sprite/tile/dirt.png b/static/resources/sprite/tile/dirt.png
new file mode 100644
index 0000000..5961666
--- /dev/null
+++ b/static/resources/sprite/tile/dirt.png
Binary files differ
diff --git a/static/resources/sprite/tile/grass.png b/static/resources/sprite/tile/grass.png
new file mode 100644
index 0000000..7835867
--- /dev/null
+++ b/static/resources/sprite/tile/grass.png
Binary files differ
diff --git a/static/resources/sprite/tile/road_left.png b/static/resources/sprite/tile/road_left.png
new file mode 100644
index 0000000..3e81507
--- /dev/null
+++ b/static/resources/sprite/tile/road_left.png
Binary files differ
diff --git a/static/resources/sprite/tile/road_right.png b/static/resources/sprite/tile/road_right.png
new file mode 100644
index 0000000..30bb2a2
--- /dev/null
+++ b/static/resources/sprite/tile/road_right.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/border/bottom_left.png b/static/resources/sprite/tile/stone/border/bottom_left.png
new file mode 100644
index 0000000..ed9be55
--- /dev/null
+++ b/static/resources/sprite/tile/stone/border/bottom_left.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/border/bottom_right.png b/static/resources/sprite/tile/stone/border/bottom_right.png
new file mode 100644
index 0000000..71782d2
--- /dev/null
+++ b/static/resources/sprite/tile/stone/border/bottom_right.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/floor.png b/static/resources/sprite/tile/stone/floor.png
new file mode 100644
index 0000000..f6ebb94
--- /dev/null
+++ b/static/resources/sprite/tile/stone/floor.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/plate.png b/static/resources/sprite/tile/stone/plate.png
new file mode 100644
index 0000000..fb8d405
--- /dev/null
+++ b/static/resources/sprite/tile/stone/plate.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/wall/bottom.png b/static/resources/sprite/tile/stone/wall/bottom.png
new file mode 100644
index 0000000..13d0928
--- /dev/null
+++ b/static/resources/sprite/tile/stone/wall/bottom.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/wall/bottom_left.png b/static/resources/sprite/tile/stone/wall/bottom_left.png
new file mode 100644
index 0000000..861565a
--- /dev/null
+++ b/static/resources/sprite/tile/stone/wall/bottom_left.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/wall/bottom_left_inner.png b/static/resources/sprite/tile/stone/wall/bottom_left_inner.png
new file mode 100644
index 0000000..348821c
--- /dev/null
+++ b/static/resources/sprite/tile/stone/wall/bottom_left_inner.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/wall/bottom_right.png b/static/resources/sprite/tile/stone/wall/bottom_right.png
new file mode 100644
index 0000000..4290010
--- /dev/null
+++ b/static/resources/sprite/tile/stone/wall/bottom_right.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/wall/bottom_right_inner.png b/static/resources/sprite/tile/stone/wall/bottom_right_inner.png
new file mode 100644
index 0000000..2c235ea
--- /dev/null
+++ b/static/resources/sprite/tile/stone/wall/bottom_right_inner.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/wall/left.png b/static/resources/sprite/tile/stone/wall/left.png
new file mode 100644
index 0000000..a7791ec
--- /dev/null
+++ b/static/resources/sprite/tile/stone/wall/left.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/wall/right.png b/static/resources/sprite/tile/stone/wall/right.png
new file mode 100644
index 0000000..5f78ced
--- /dev/null
+++ b/static/resources/sprite/tile/stone/wall/right.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/wall/top.png b/static/resources/sprite/tile/stone/wall/top.png
new file mode 100644
index 0000000..6ecad42
--- /dev/null
+++ b/static/resources/sprite/tile/stone/wall/top.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/wall/top_left.png b/static/resources/sprite/tile/stone/wall/top_left.png
new file mode 100644
index 0000000..3a0c4fa
--- /dev/null
+++ b/static/resources/sprite/tile/stone/wall/top_left.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/wall/top_left_inner.png b/static/resources/sprite/tile/stone/wall/top_left_inner.png
new file mode 100644
index 0000000..60d4b68
--- /dev/null
+++ b/static/resources/sprite/tile/stone/wall/top_left_inner.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/wall/top_right.png b/static/resources/sprite/tile/stone/wall/top_right.png
new file mode 100644
index 0000000..9d06f10
--- /dev/null
+++ b/static/resources/sprite/tile/stone/wall/top_right.png
Binary files differ
diff --git a/static/resources/sprite/tile/stone/wall/top_right_inner.png b/static/resources/sprite/tile/stone/wall/top_right_inner.png
new file mode 100644
index 0000000..20cb074
--- /dev/null
+++ b/static/resources/sprite/tile/stone/wall/top_right_inner.png
Binary files differ